Skip to content

Commit

Permalink
fix: uses rawValues availabilityDidChange fix #27
Browse files Browse the repository at this point in the history
  • Loading branch information
sowens-csd committed Jan 26, 2020
1 parent 24ab327 commit 697e162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/SwiftSpeechToTextPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public class SwiftSpeechToTextPlugin: NSObject, FlutterPlugin {
@available(iOS 10.0, *)
extension SwiftSpeechToTextPlugin : SFSpeechRecognizerDelegate {
public func speechRecognizer(_ speechRecognizer: SFSpeechRecognizer, availabilityDidChange available: Bool) {
let availability = available ? SpeechToTextStatus.available : SpeechToTextStatus.unavailable
let availability = available ? SpeechToTextStatus.available.rawValue : SpeechToTextStatus.unavailable.rawValue
invokeFlutter( SwiftSpeechToTextCallbackMethods.notifyStatus, arguments: availability )
}
}
Expand Down

0 comments on commit 697e162

Please sign in to comment.