WeAccess.Ai Image Recognition SDK Image Integration for iOS Applications

WeAccess.Ai Image Recognition SDK Integration for iOS Applications
Step 1. Swift Package Manager
Add this package to your project using Swift Package Manager in Xcode:
- Open your project in Xcode.
- Select Add Packages from the File menu.
- Enter the following GitHub URL:
https://github.com/signfordeaf/WePhoto-ios.git
Step 2. Manual Installation (Optional)
Alternatively, you can clone the repository and manually include the Swift files in your project.
Activation
Step 3. SDK Initialization
Initialize the SDK using your API key:
import WePhoto
@main
struct WeAccessExampleApp: App {
init() {
WePhotoInit.shared?.setApiKey("YOUR-API-KEY")
}
var body: some Scene {
WindowGroup {
ContentView()
}
}
}Usage
Step 4. SwiftUI Usage Example
Use the WePhotoImageView component in your SwiftUI views:
import SignForDeaf
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
WePhotoImageView(
imageUrl: "https://picsum.photos/200",
assetImageName: nil
)
.padding()
WePhotoImageView(
imageUrl: nil,
assetImageName: "forest"
)
.padding()
}
.padding()
}
}
