Skip to content

Commit 0dfbeaf

Browse files
committed
Fix protocol way.
1 parent 16cbce3 commit 0dfbeaf

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

SPPermissions.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "SPPermissions"
4-
s.version = "5.5"
4+
s.version = "5.5.1"
55
s.summary = "Ask permissions on Swift. Available List, Dialog & Native interface. Can check state permission."
66
s.homepage = "https://github.com/ivanvorobei/SPPermissions"
77
s.source = { :git => "https://github.com/ivanvorobei/SPPermissions.git", :tag => s.version }

Sources/SPPermissions/Protocols/SPPermissionsDataSource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import UIKit
2525
/**
2626
Implement it for customize permission name, description, icon and other.
2727
*/
28-
public protocol SPPermissionsDataSource: class {
28+
public protocol SPPermissionsDataSource: AnyObject {
2929

3030
/**
3131
Configure cell here. Soon add description for each property.

Sources/SPPermissions/Protocols/SPPermissionsDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import UIKit
2424
/**
2525
List of events methods. All optional.
2626
*/
27-
@objc public protocol SPPermissionsDelegate: class {
27+
@objc public protocol SPPermissionsDelegate: AnyObject {
2828

2929
/**
3030
Call when permission allowed.

0 commit comments

Comments
 (0)