Skip to content

Instantly share code, notes, and snippets.

@giln
Created May 6, 2019 13:27
Show Gist options
  • Save giln/cc0930c4473b3c6d0abe4b4c33485bc4 to your computer and use it in GitHub Desktop.
Save giln/cc0930c4473b3c6d0abe4b4c33485bc4 to your computer and use it in GitHub Desktop.
import UIKit
open class ErrorViewController: UIViewController {
// MARK: - Variables
public let errorLabel = UILabel()
// MARK: - Lifecycle
open override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = UIColor.white
errorLabel.numberOfLines = 0
errorLabel.textAlignment = .center
view.addSubview(errorLabel)
errorLabel.anchor(in: view)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment