robb/Cartography

Mac Catalyst issues

polymerchm opened this issue · 3 comments

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

same for bottomLayoutGuide

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. 🙂

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)
        }
    }
}

`

Do you still have a schedule to fix this?
It's been almost a year since last update.
I hope "Cartography" will be continuing maintenance.