Created
May 18, 2017 06:29
-
-
Save anonymous/ea72a4674cb567a403453d9d5b91ea46 to your computer and use it in GitHub Desktop.
the description for this gist
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
import UIKit | |
extension UIView { | |
override open func awakeFromNib() { | |
super.awakeFromNib() | |
self.setupUI() | |
} | |
override open func prepareForInterfaceBuilder() { | |
super.prepareForInterfaceBuilder() | |
self.setupUI() | |
} | |
// Override to apply styling | |
func setupUI() { } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment