Last active
April 10, 2021 08:08
-
-
Save roz0n/912580b7b8d48955b75623340d49acd6 to your computer and use it in GitHub Desktop.
UIView fillOther
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func fillOther(view: UIView) { | |
NSLayoutConstraint.activate([ | |
leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor), | |
trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor), | |
topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor), | |
bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor) | |
]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment