swift - Turn off #available(OSX 10.10, *) if that's your target? -
i use containsstring
in app. app has targets 10.10 , nothing older. swift complains , suggests introducting horrible syntax...
if #available(osx 10.10, *) { if !nsstring(string: line).containsstring(" ") { continue } } else { // fallback on earlier versions }
well since app won't run on earlier, code useless. there way turn off globally? don't want or need it.
Comments
Post a Comment