Last active
October 19, 2015 13:43
-
-
Save alfredcc/1ae05c6fdac76062cd89 to your computer and use it in GitHub Desktop.
create a 1px line with Interface Builder
This file contains 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
@IBOutlet var hairlineConstraints: Array<NSLayoutConstraint>? { | |
didSet { | |
for hairlineConstraint in hairlineConstraints! { | |
hairlineConstraint.constant = 1 / UIScreen.mainScreen().scale | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment