Hi to all,
i’m very new to Swift language (my background is JAVA) and i’ve see that in swift there are very elegant way to check for condition (if-let , guard and so on).
Now, i would like to read Info.plist and ensure that SOME key are set and ALL OF THEM have a value, otherwise the application must crash. I’m writing some library (for my personal use) and this key/value is a pre-requisite to continue.
Because this library do not need an instance, i have think to write it as Singleton and check this key/value, but i dont know if is the best way to do it, can someone help me to write good code? Thanks!!!