Skip to content

Commit d2d39fc

Browse files
committed
fix bugs
1 parent a0698bf commit d2d39fc

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

.DS_Store

2 KB
Binary file not shown.

sparrow/.DS_Store

0 Bytes
Binary file not shown.

sparrow/permission/SPPermission.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ import Contacts
2929

3030
public struct SPPermission {
3131

32-
static func isAllow(_ permission: SPPermissionType) -> Bool {
32+
public static func isAllow(_ permission: SPPermissionType) -> Bool {
3333
let manager = self.getManagerForPermission(permission)
3434
return manager.isAuthorized()
3535
}
3636

37-
static func request(_ permission: SPPermissionType, with complectionHandler: @escaping ()->()) {
37+
public static func request(_ permission: SPPermissionType, with complectionHandler: @escaping ()->()) {
3838
let manager = self.getManagerForPermission(permission)
3939
manager.request(withComlectionHandler: {
4040
complectionHandler()

sparrow/permission/dialog/SPPermissionDialog.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import UIKit
2323

2424
extension SPPermission {
2525

26-
struct Dialog {
26+
public struct Dialog {
2727

2828
static func request(with permissions: [SPPermissionType], on viewController: UIViewController, delegate: SPPermissionDialogDelegate? = nil, dataSource: SPPermissionDialogDataSource? = nil) {
2929

0 commit comments

Comments
 (0)