Skip to content

Instantly share code, notes, and snippets.

@santoshrajan
Created November 7, 2014 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santoshrajan/58bbb2aa3b06343d7746 to your computer and use it in GitHub Desktop.
Save santoshrajan/58bbb2aa3b06343d7746 to your computer and use it in GitHub Desktop.
class VerticalScreenLayout: VerticalLayout {
init() {
super.init(width: UIScreen.mainScreen().bounds.width)
}
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func layoutSubviews() {
self.frame.size.width = UIScreen.mainScreen().bounds.width
super.layoutSubviews()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment