Skip to content

Commit

Permalink
Fix the alt text view initialization (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu authored May 15, 2023
1 parent 3a05799 commit d24fe00
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Mastodon/Scene/MediaPreview/AltTextViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d24fe00

Please sign in to comment.