nickoneill / PermissionScope

Intelligent iOS permissions UI and unified API
MIT License
4.84k stars 505 forks source link

Button texts truncated on iOS 8 #200

Open zeiteisen opened 8 years ago

zeiteisen commented 8 years ago

screen shot 2016-09-23 at 16 50 16

See the close and grant access button.

pjebs commented 8 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.