Swiftpack.co - tyagishi/SDSSupportRequestSheet as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by tyagishi.
tyagishi/SDSSupportRequestSheet 4.0.0
support sheet for iOS and macOS
⭐️ 0
🕓 46 weeks ago
iOS macOS
.package(url: "https://github.com/tyagishi/SDSSupportRequestSheet.git", from: "4.0.0")

SDSSupportRequestSheet

macOS iOS iOS macOS SPM is supported license

Support Request (Question/Request/BugFix) sheet

Feature

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.

Code Example

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]"] )
        }
    }
}

Installation

Swift Package Manager: URL: https://github.com/tyagishi/SDSSupportRequestSheet

Currently no stable version available. use main for the moment.

Requirements

none

Note

GitHub

link
Stars: 0
Last commit: 46 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

4.0.0: mailRecipients
46 weeks ago

now can specify mailRecipients as init argument

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics