Stevia
Stevia copied to clipboard
Align center issue
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'
Here is the code where its showing @discardableResult func centerInContainer() -> Self { if let spv = superview { alignCenter(self, with: spv) } return self }
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.
Same issue.