Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Release 1.1.0

Compare
Choose a tag to compare
@alexmx alexmx released this 01 Aug 16:30
· 20 commits to master since this release
  • 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)")
        }
    }
}