Created
May 6, 2019 13:27
-
-
Save giln/cc0930c4473b3c6d0abe4b4c33485bc4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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