23 lines
505 B
Swift
23 lines
505 B
Swift
|
import UIKit
|
||
|
|
||
|
open class SetupView: UIView {
|
||
|
|
||
|
// Subclassers should override setup instead of any of the initializers. Subclassers must call super.setup()
|
||
|
open func setup() {
|
||
|
}
|
||
|
|
||
|
// MARK: - Initializers
|
||
|
// Don't override these initializers, use setup() instead
|
||
|
|
||
|
public override init(frame: CGRect) {
|
||
|
super.init(frame: frame)
|
||
|
setup()
|
||
|
}
|
||
|
|
||
|
public required init?(coder aDecoder: NSCoder) {
|
||
|
super.init(coder: aDecoder)
|
||
|
setup()
|
||
|
}
|
||
|
|
||
|
}
|