Skip to content

wishkit/wishkit-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WishKit Examples

Multi-project WishKit sample apps across Apple platforms: iOS, macOS, visionOS, tvOS, watchOS.

Current platform support:

Platform Status Notes
iOS Supported.
macOS Supported.
visionOS Supported.
tvOS 🚧 Work in progress.
watchOS 🚧 Work in progress.

Minimal SwiftUI setup Simple example that configures WishKit and shows the feedback list. Set up WishKit once when your app starts, e.g. the app init. Then you can show the feedback list anywhere.

import SwiftUI
import WishKit

@main
struct ExampleApp: App {
    init() {
        WishKit.configure(with: "YOUR_API_KEY")
    }

    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

struct ContentView: View {
    var body: some View {
        WishKit.FeedbackListView().withNavigation()
    }
}

Or, if you already have a NavigationStack/NavigationView: Embed the feedback list inside your existing navigation container without .withNavigation().

struct ContentView: View {
    var body: some View {
        NavigationStack {
            WishKit.FeedbackListView()
        }
    }
}

About

Example projects including: iOS, macOS, visionOS, tvOS and watchOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages