Stevia icon indicating copy to clipboard operation
Stevia copied to clipboard

Align center issue

Open hammas1993 opened this issue 1 year ago • 3 comments

Im getting this error in the new xcode 26 Use of 'alignCenter' refers to instance method rather than global function 'alignCenter(_:with:)' in module 'Stevia'

hammas1993 avatar Jun 10 '25 07:06 hammas1993

Here is the code where its showing @discardableResult func centerInContainer() -> Self { if let spv = superview { alignCenter(self, with: spv) } return self }

hammas1993 avatar Jun 10 '25 07:06 hammas1993

The fix is to change alignCenter(self, with: spv) to Stevia.alignCenter(self, with: spv)

This namespaces the call so that it doesn't conflict. I'm happy to push a pull request. But I don't have write access to this repo.

LordAndrei avatar Jun 12 '25 11:06 LordAndrei

Same issue.

ahmedsafadii avatar Dec 20 '25 21:12 ahmedsafadii