Swiftpack.co - Roberdan/PermissionsManagerSwiftUI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Roberdan.
Roberdan/PermissionsManagerSwiftUI 1.0
Permissions Manager for SwiftUI
⭐️ 0
🕓 1 year ago
iOS macOS watchOS
.package(url: "https://github.com/Roberdan/PermissionsManagerSwiftUI.git", from: "1.0")

PermissionsManager Package for SwiftUI

(c) 2022 [email protected] for FightTheStroke Foundation (www.fightthestroke.org)

BSD-3 License

#Rely on latest SwiftUI Async Combine events

#Easy to use in your app: import PermissionsManager @StateObject private var permissionsManager: PermissionsManager = PermissionsManager.shared

init() {
        PermissionsManager.shared.personalize(appName: "App Name",
                                          supportEmail: "[email protected]",
                                          permissionsToHandle: [
                                            .notifications(isMandatory: true),
                                            .health(isMandatory: true),
                                            .criticalNotification(isMandatory: false),
                                            .speech(isMandatory: false),
                                            .microphone(isMandatory: false),
                                            .camera(isMandatory: false)
    ])
}

var body: View {
    if permissionsManager.canGoAhead {
    YourContentView()
} else {
    PermissionsManagerView(skippable: true)
}

}

#Expandable to new types is easy public class NewTypePermissionManager: PermissionManagerProtocol

#Localized in 17 languages

GitHub

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

Release Notes

1.0
1 year ago

Super easy to use Permissions Manager for iOS and WatchOS in SwiftUI

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