ios : add support for Swift Package Manager (#1370)

* Add support for Swift

* Make it build in Xcode

* Use the SPM package in the SwiftUI example app
This commit is contained in:
Sindre Sorhus
2023-11-08 04:53:31 +07:00
committed by GitHub
parent 6a5d195109
commit d03c60dd7f
7 changed files with 109 additions and 76 deletions

View File

@ -1,4 +1,5 @@
import Foundation
import whisper
enum WhisperError: Error {
case couldNotInitializeContext

View File

@ -1,4 +0,0 @@
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "whisper.h"