We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sure what the right approach is. Do we have to use the new edge inset guide on the view?
The text was updated successfully, but these errors were encountered:
Reference: https://useyourloaf.com/blog/safe-area-layout-guide/
Sorry, something went wrong.
Clearly, the new approach is to use the safeAreaLayoutGuide on iOS 11+. We should also have something along these lines for all the hybrid anchors:
var safeCenterAnchors: AnchorPair<NSLayoutXAxisAnchor, NSLayoutYAxisAnchor> { if #available(iOS 11.0, *) { return AnchorPair(first: safeAreaLayoutGuide.centerXAnchor, second: safeAreaLayoutGuide.centerYAnchor) } else { return centerAnchors } }
In order to do this in my app, I also had to add this to expose the internal initializer:
internal
extension AnchorPair { init(first: T, second: U) { self.first = first self.second = second } }
Semi-duplicated by #59
No branches or pull requests
Not sure what the right approach is. Do we have to use the new edge inset guide on the view?
The text was updated successfully, but these errors were encountered: