Created
October 11, 2018 03:24
-
-
Save vialyx/ef40abbc917f13c5788492d623c3c130 to your computer and use it in GitHub Desktop.
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
class FullscreenButton: UIButton { | |
// Convenience initializer | |
convenience init(_ screen: UIScreen) { | |
// Reusing Designated initializer | |
self.init(frame: screen.bounds) | |
} | |
// Initializer overriding | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
} | |
// Required initializer | |
required init?(coder aDecoder: NSCoder) { | |
fatalError("init(coder:) has not been implemented") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment