Closed zbangsatz closed 7 years ago
First think I want to say: Thank you! It's awesome.
My trouble is can't use 'do' block. The compile show error "Expected member name following.". Example:
NSUserDefaults.standardUserDefaults().do({ // Do anything with UserDefaults })
@zbangsatz It's because do is reserved keyword in Swift 2. In order to use do in Swift 2 project, you should use backtick(`).
do
NSUserDefaults.standardUserDefaults().`do` { $0.synchronize() }
First think I want to say: Thank you! It's awesome.
My trouble is can't use 'do' block. The compile show error "Expected member name following.". Example:
NSUserDefaults.standardUserDefaults().do({ // Do anything with UserDefaults })