Skip to content

Instantly share code, notes, and snippets.

@omaralbeik
Last active April 7, 2018 21:46
Show Gist options
  • Save omaralbeik/379bf8a2c933ea2eb171ba10f5752d3b to your computer and use it in GitHub Desktop.
Save omaralbeik/379bf8a2c933ea2eb171ba10f5752d3b to your computer and use it in GitHub Desktop.
View.swift
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