Ryasnoy / AppLocker

AppLocker - simple lock screen for iOS Application ( Swift 4+, iOS 9.0+) Touch ID / Face ID
MIT License
211 stars 46 forks source link

[RESOLVED]Appearance #4

Closed TheBaldNerd closed 6 years ago

TheBaldNerd commented 6 years ago

Hi there,

Apologies as I am learning SWIFT (Aren't we all!?) :)

I have implemented the basic appearance exactly as you have in the example - I have even added it a few different ways, but still get the same error.

'Cannot convert value of type 'ALAppearance' to expected argument type 'ALAppearance?''

I have tried cleaning, building, re-connecting the variable, moving the variable definition.

I have currently installed and updated AppLocker via CocoaPods.

Thank you.

J

Ryasnoy commented 6 years ago

Hello. Thank you for your feedback. Can you show screenshots? ALAppearance andALAppearance? - different types, where last one is optional. Give me more info and I`ll help you.)

TheBaldNerd commented 6 years ago

Hi there,

Thanks for the email - like I said I am learning, so I may have done something simple, who knows:

screen shot 2018-08-28 at 19 07 57

I have set up a basic initialiser and have tried a few settings.

Thanks.

Jon

Ryasnoy commented 6 years ago

@TheBaldNerd I checked and found no errors.

You can clean the project CMD+Shift+K then run this command in terminal rm -rf ~/Library/Developer/Xcode/DerivedData

Restart Xcode and try again to do your task

2018-08-29 9 50 07
TheBaldNerd commented 6 years ago

Hi again - thanks for looking.

I had tried cleaning etc before, but followed your suggestion and it still throws an error. The present(with: line is expecting ALAppearance to be an optional it seems 🤷🏼‍♂️

EDIT: I finally got it working by recreating the Applocker and UI files directly within my project folders - this is despite them already being in the Pods section below.

Thank you.