From 657ba5b82c41d1ed7ef2178a5f22892eda805ec8 Mon Sep 17 00:00:00 2001 From: Christopher Combes Date: Sun, 2 Jul 2017 18:20:37 -0500 Subject: [PATCH] Fix timing issue with speaking weather. Remove README file from build target. --- AudioWeather/AudioWeather.xcodeproj/project.pbxproj | 2 -- AudioWeather/AudioWeather/MainViewController.swift | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/AudioWeather/AudioWeather.xcodeproj/project.pbxproj b/AudioWeather/AudioWeather.xcodeproj/project.pbxproj index 4fded2e..473db6a 100644 --- a/AudioWeather/AudioWeather.xcodeproj/project.pbxproj +++ b/AudioWeather/AudioWeather.xcodeproj/project.pbxproj @@ -47,7 +47,6 @@ 83D33DB31EF88E2A00B44E0B /* WeatherLoader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83D33DB21EF88E2A00B44E0B /* WeatherLoader.swift */; }; 83D33DB71EF89D3000B44E0B /* WeatherAPIManagerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83D33DB61EF89D3000B44E0B /* WeatherAPIManagerTests.swift */; }; 83D33DB91EF89D7000B44E0B /* WeatherLoaderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83D33DB81EF89D7000B44E0B /* WeatherLoaderTests.swift */; }; - 83EE33301F09622500386F0B /* README.md in Sources */ = {isa = PBXBuildFile; fileRef = 83EE332F1F09622500386F0B /* README.md */; }; EB4D9AF32F0DB65BCCABC3A5 /* Pods_AudioWeather.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2A849419BE54BE522003292 /* Pods_AudioWeather.framework */; }; F86664268956028458EDD31C /* Pods_AudioWeatherTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 445CF3D9F462EED27A2DC50F /* Pods_AudioWeatherTests.framework */; }; /* End PBXBuildFile section */ @@ -519,7 +518,6 @@ 837D00E31EFA2FD300648207 /* NetworkHelper.swift in Sources */, 833AAF031EF5E2980043E507 /* WeatherModel.swift in Sources */, 8362219B1EF9CBDA0021EA57 /* SearchViewController.swift in Sources */, - 83EE33301F09622500386F0B /* README.md in Sources */, 836221991EF99E5F0021EA57 /* ForecastTableCell.swift in Sources */, 835CEED81EFDE5B6001AB8FB /* ForecastViewModel.swift in Sources */, 83D33DB31EF88E2A00B44E0B /* WeatherLoader.swift in Sources */, diff --git a/AudioWeather/AudioWeather/MainViewController.swift b/AudioWeather/AudioWeather/MainViewController.swift index 0b44a81..d9403bc 100644 --- a/AudioWeather/AudioWeather/MainViewController.swift +++ b/AudioWeather/AudioWeather/MainViewController.swift @@ -99,7 +99,7 @@ class MainViewController: UIViewController { let model = WeatherModel(json: data) updateFieldsWith(model: model) - DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1) { + DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()) { WeatherVoice.shared.speakWeather(model) } }