How can I use the dynamic type text style \"Title 1\" and set the font face to the built-in font Chalkboard SE for a UILabel in a storyboard?
I need to honor the Dynamic
Try my solution without need to listening for NSNotification.Name.UIContentSizeCategoryDidChange.
Simply override traitCollectionDidChange on any UIView or UITableViewCell and update/calulate the fontsize with the similar TextStyle.
You can simply test it with any simulated Device and the Accessibility Inspector on MacOS.
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
let pointSize = UIFontDescriptor.preferredFontDescriptor(withTextStyle: .title1).pointSize
titleLabel.font = titleLabel.font.withSize(pointSize)
}