This repository has been archived by the owner on Jun 22, 2021. It is now read-only.
Release 1.1.0
- Added a closure handler called every time the font should be updated.
import AMXFontAutoScale
class SomeViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
someLabel.amx_fontSizeUpdateHandler = { originalSize, preferredSize, multiplier in
print("For original size: \(originalSize) set preferred size: \(preferredSize), multiplier: \(multiplier)")
}
}
}