Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Swift version from 5 to 4 in Xcode?

Tags:

swift

I am programming with Swift in Xcode (MacBook Air 2015) and I want to change my Swift version from 5 to 4. How to do that?

like image 809
surftijmen Avatar asked Dec 31 '22 20:12

surftijmen


1 Answers

Project ► (Select Your Project Target) ► Build Settings ► (Type
'swift_version' in the Search bar) Swift Compiler Language ► Swift
Language Version ► Click on Language list

Here you can change your version.

An example screenshot

like image 69
surftijmen Avatar answered Jan 17 '23 00:01

surftijmen