Masonry
Masonry copied to clipboard
How to use UILayoutGuide with Masonry?
I find Snapkit can use like this:
let guide = UILayoutGuide()
someView.addLayoutGuide(guide)
guide.snp.makeConstraints { make in
make.width.equalToSuperview()
make.height.equalTo(100)
make.top.equalToSuperview()
}
Is it possible to set constraints on a UILayoutGuide using Masonry?
I have the same questions!
I have the same questions!
We should put together a PR for this, as I use layout guides all over the place and adding support wouldn't be too much trouble.
I have the same questions, too.
Masonry can't use UILayoutGuide, but your can use a UIView to do so. create a simple blank view without background, to use 'mas_makeConstraints:'
Try this PR please.
https://github.com/SnapKit/Masonry/pull/594