Skip to content

Commit

Permalink
Update Readme & Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Nov 20, 2019
1 parent ff90ed2 commit fb0f3a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,12 @@ notificationData.alertOpenSettingsDeniedPermissionButtonTitle = "Settings"
notificationData.alertOpenSettingsDeniedPermissionCancelTitle = "Cancel"
```

In delegate you can implement two methods:
In delegate you can implement three methods:

```swift
func didAllow(permission: SPPermission) {}
func didDenied(permission: SPPermission) {}
func didHide() {}
```

## Good Practices
Expand Down
7 changes: 5 additions & 2 deletions Source/SPPermissions/Protocols/SPPermissionsDataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
import UIKit

/**
Implement it for customize permission name, description, icon and other.
*/
Implement it for customize permission name, description, icon and other.
*/
public protocol SPPermissionsDataSource: class {

/**
Return data for permission. Include optinal image and alerts if permission denied.
*/
func data(for permission: SPPermission) -> SPPermissionData?
}

0 comments on commit fb0f3a4

Please sign in to comment.