yonaskolb / Stylist

Define UI styles for iOS apps in a hot-reloadable yaml or json file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when open example get Error loading theme: notFound

mohammadshalhoob opened this issue · comments

Error loading theme: notFound , when open example

test on xcode 8.3.3 , iphone 4 , ios 9.3.

i fix it like this , in AppDelegate didFinishLaunchingWithOptions .

    if let path = Bundle.main.url(forResource: "Style", withExtension: "yaml") {
        Stylist.shared.watch(url: path, animateChanges: true) { error in
            print("Error loading theme:\n\(error)")
        }

    }

thanks

Interesting, I'm not seeing that error. I'm sure it was working in Xcode 8 and it's working for me now in Xcode 9.

@mohammadshalhoob I just updated to Swift 4 in master. You can see if it works for you in Xcode 9

ok i will test it ,

thanks

Closing this for now. Let me know if you have any problems @mohammadshalhoob