nickoneill / PermissionScope

Intelligent iOS permissions UI and unified API
MIT License
4.85k stars 507 forks source link

Button texts truncated on iOS 8 #200

Open zeiteisen opened 7 years ago

zeiteisen commented 7 years ago

screen shot 2016-09-23 at 16 50 16

See the close and grant access button.

pjebs commented 7 years ago

German is tough due to long words. Perhaps the button on top-right should have .sizeToFit().

Perhaps the grant buttons should have:

        button.setTitle("Allowed \(prettyDescription)".localized.uppercaseString, forState: .Normal)
        button.adjustsFontSizeToFitWidth = true
        button.minimumScaleFactor = 0.5

Perhaps you can apply does methods to the label inside the button. Not sure if it exists for buttons.