Last active
April 7, 2018 21:46
-
-
Save omaralbeik/379bf8a2c933ea2eb171ba10f5752d3b to your computer and use it in GitHub Desktop.
View.swift
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 | |
class View: UIView { | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
setViews() | |
layoutViews() | |
} | |
required init?(coder aDecoder: NSCoder) { | |
super.init(coder: aDecoder) | |
setViews() | |
layoutViews() | |
} | |
/// Set your view and its subviews here. | |
func setViews() { | |
backgroundColor = .white | |
} | |
/// Layout your subviews here. | |
func layoutViews() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment