Support Request (Question/Request/BugFix) sheet
SDSSupportRequestSheet provides the sheet for sending requests to app developer.
SDSSupportRequestSheet will collect customer environment info automatically.
on iOS, send those info via MFMailComposeViewController.
on macOS, send those info via NSSharingService.
same code can be used on iOS and macOS.
//
// ContentView.swift
//
// Created by : Tomoaki Yagishita on 2021/07/24
// © 2021 SmallDeskSoftware
//
import SwiftUI
import SDSSupportRequestSheet
struct ContentView: View {
@State private var showSupportDialog = false
var body: some View {
VStack {
Button(action: {
showSupportDialog.toggle()
}, label: {
Text("Show Support Dialog")
})
.padding()
}
.sheet(isPresented: $showSupportDialog ) {
SDSSupportRequestSheet(isPresented: $showSupportDialog,
mailRecipients: ["[email protected]"] )
}
}
}
Swift Package Manager: URL: https://github.com/tyagishi/SDSSupportRequestSheet
Currently no stable version available. use main for the moment.
none
link |
Stars: 0 |
Last commit: 46 weeks ago |
now can specify mailRecipients as init argument
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics