I have a struct class which I store Datas about phone and app properties like screenResolution, PhoneModel, ApplicationInstalledDate, wifiDetailInfo. It will be declared just one time when app opens. I want to write functions for every property because there will be like 30 property and in init method I want to call every function to declare properties. As I searched, I can't do it directly like
property = self.function()
So I declare functions as private static as you can see in below code.
My questions are;
1-) When I declaring and calling functions like that will they work as async? If not, will It be a performance problem because I'm calling these on app start (AppDelegate) and I'm not sure If they affect app opening time.
2-) In addition, my app needs to be secure. Maybe It is a silly question but something came to my mind. If I declare a function static even it is private, Is it more easy to be reach when reverse engineered and trying to change or get some data?
struct DeviceDataModel {
    let applicationInstalledDate: String
    //Continue
    init?(){
        applicationInstalledDate = DeviceDataModel.getApplicationInstalledDate()
    }
    private static func getApplicationInstalledDate() -> String{
        let urlToDocumentsFolder = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).last!
        //installDate is NSDate of install
        return (try! FileManager.default.attributesOfItem(atPath: urlToDocumentsFolder.path)[FileAttributeKey.creationDate] as! String)
    }
}
 
     
    