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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -