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() {} }
View.swift

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.