Skip to content
New issue

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

Mac Catalyst issues #316

Open
polymerchm opened this issue Oct 28, 2019 · 3 comments
Open

Mac Catalyst issues #316

polymerchm opened this issue Oct 28, 2019 · 3 comments

Comments

@polymerchm
Copy link

topLayoutGuide' was deprecated in Mac Catalyst 13.0: Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor

same for bottomLayoutGuide

@pawelurb
Copy link

Hi @polymerchm!

Could you provide more information about when you're encountering this warning? Maybe a piece of sample code?

It seems to me like you're trying to use the .bottomLayoutGuide and .topLayoutGuide APIs directly. These are indeed deprecated - as they were replaced by safeAreaLayoutGuide starting with iOS 11.

You can refer to official documentation to learn about safe areas. I highly encourage you to use them - especially when you're building for Mac Catalyst. 🙂

@polymerchm
Copy link
Author

This code is in Cartography,

` public extension UIViewController {
var car_topLayoutGuide : LayoutSupport {
get {
return LayoutSupport(layoutGuide: self.topLayoutGuide)
}
}

    var car_bottomLayoutGuide : LayoutSupport {
        get {
            return LayoutSupport(layoutGuide: self.bottomLayoutGuide)
        }
    }
}

`

@rshimokura

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants