2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Resize text when Dynamic Type style updates

This commit is contained in:
Jed Fox 2022-12-23 14:16:41 -05:00
parent 752d76c8be
commit d553dd4f62
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1

View File

@ -79,6 +79,11 @@ class AltViewController: UIViewController {
)
}
}
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
label.font = .preferredFont(forTextStyle: .callout)
}
}
// MARK: UIPopoverPresentationControllerDelegate