Swiftpack.co -  Darktt/DTPermissionKit as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Darktt/DTPermissionKit
Check iOS permission
.package(url: "https://github.com/Darktt/DTPermissionKit.git", from: "0.0.3")

DTPermissionKit

Check iOS permission

Usage:

// Request camera permission.
let premission = DTPermission.camera
premission.request {
    
    status in
    
    switch status {
    
    case .authorized:
        // Can access camera.
        break
    
    case .denied:
        // User denied camera access permission.
        break
    
    case .notDetermined:
        // User not determine.
        break
    
    default:
        // Other case.
        break
    }
}

Note: When summit app to Apple Store Connect, you need add all privacy, then just write description of requested permission on you app, other description can be empty.

GitHub

link
Stars: 0
Last commit: 3 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

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