SCLAlertView-Swift icon indicating copy to clipboard operation
SCLAlertView-Swift copied to clipboard

'appearance' is inaccessible due to 'internal' protection level

Open luishar0 opened this issue 7 years ago • 3 comments

Updated to Swift 4 and I'm having trouble hiding the "Done" button. When using: alertView.appearance.showCloseButton = false I get the error message: 'appearance' is inaccessible due to 'internal' protection level

luishar0 avatar Jan 13 '18 21:01 luishar0

i had the same issue

abdallaMunzer avatar Feb 18 '18 14:02 abdallaMunzer

same! :/

seenoevo avatar Apr 05 '18 05:04 seenoevo

@luishar0 @abdallaMunzer @seenoevo The problem is that author @vikmeup insert class of appearance into SCLAlertView class as struct. Thus you can not customise you appearance after once you create it @vikmeup I do not want to enter in your current lib software engineering, but in your read.me file you say that:

while being flexible enough for multiple variations

So why in latest versions you disabled flexibility of the lib. E.g. if I would like to create custom size for warning and success message, once I have default one for other messages types, I can not do this now.

I customised your lib for my needs and if you would like to see and review my improvements I am ready to sent PR in order to fix the issues above

FYI

sashberd avatar Nov 07 '18 12:11 sashberd