Select the target ‘SimpleWeather’ in the project and change language version Target->build setting -> Swift compiler language -> select 5, 4.2 etc

Select the target ‘SimpleWeather’ in the project and change language version Target->build setting -> Swift compiler language -> select 5, 4.2 etc
