Fix the alt text view initialization (#1047)

This commit is contained in:
woxtu 2023-05-15 21:21:43 +09:00 committed by GitHub
parent 3a05799df8
commit d24fe00420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -47,15 +47,11 @@ class AltTextViewController: UIViewController {
fatalError("init(coder:) has not been implemented")
}
override func loadView() {
super.loadView()
view.translatesAutoresizingMaskIntoConstraints = false
}
override func viewDidLoad() {
super.viewDidLoad()
textView.translatesAutoresizingMaskIntoConstraints = false
view.translatesAutoresizingMaskIntoConstraints = false
view.backgroundColor = .systemBackground
view.addSubview(textView)