Open
Description
Hello,
Great product! It would be fantastic if you could update the installation instructions and the demo files (inside ApiAIDemoSwift) for Swift 2.0 and iOS 9.0. Namely, here are a few things which I noticed:
- It's never mentioned that we should import AVFoundation in order for these two lines to work:
AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayAndRecord, error: nil)
AVAudioSession.sharedInstance().setActive(true, error: nil)
- Also in the current version of swift, the two methods above give errors because the parameters are no longer valid.
- In the other instructions, it is only specified to put the code in AppDelegate.swift, but where in AppDelegate.swift?
let request = self.apiai.requestWithType(AIRequestType.Text) as AITextRequest
- In the instruction above, requestWithType() is deprecated. What is the new method?
- The Podfile is with old syntax and assumes iOS 7.0
- Perhaps you should mention that we have to rename the Bundle Identifier in order to avoid errors with code signing.
- Finally, an
import ApiAI
statement is required in many of the classes, as well as an import statement for MBProgressHUD
Thanks! :)
Metadata
Metadata
Assignees
Labels
No labels