Skip to content

Commit 847ae72

Browse files
committed
Fixed delegate for native style.
1 parent 3e526e1 commit 847ae72

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,17 +440,17 @@ I have libraries with native interface and managing permissions. Also available
440440
Со сложными и непонятными задачами помогут в чате.
441441

442442
<p float="left">
443-
<a href="https://sparrowcode.by/telegram/channel">
443+
<a href="https://tutorials.ivanvorobei.by/telegram/channel">
444444
<img src="https://github.com/ivanvorobei/Readme/blob/main/Buttons/russian-community-tutorials.svg">
445445
</a>
446-
<a href="https://sparrowcode.by/telegram/libs">
446+
<a href="https://tutorials.ivanvorobei.by/telegram/libs">
447447
<img src="https://github.com/ivanvorobei/Readme/blob/main/Buttons/russian-community-libraries.svg">
448448
</a>
449-
<a href="https://sparrowcode.by/telegram/chat">
449+
<a href="https://tutorials.ivanvorobei.by/telegram/chat">
450450
<img src="https://github.com/ivanvorobei/Readme/blob/main/Buttons/russian-community-chat.svg">
451451
</a>
452452
</p>
453453

454-
Видео-туториалы выклыдываю на [YouTube](https://sparrowcode.by/youtube):
454+
Видео-туториалы выклыдываю на [YouTube](https://tutorials.ivanvorobei.by/youtube):
455455

456-
[![Tutorials on YouTube](https://cdn.ivanvorobei.by/github/readme/youtube-preview.jpg)](https://sparrowcode.by/youtube)
456+
[![Tutorials on YouTube](https://cdn.ivanvorobei.by/github/readme/youtube-preview.jpg)](https://tutorials.ivanvorobei.by/youtube)

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 = "6.6.5"
4+
s.version = "6.6.8"
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/Interface/Native Style/SPPermissionsNativeController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ public class SPPermissionsNativeController: NSObject, SPPermissionsControllerInt
4646
self.proceseedPermissions = permissions
4747
for permission in permissions {
4848
permission.request(completion: { [weak self] in
49-
5049
self?.proceseedPermissions = self?.proceseedPermissions.filter({ $0 != permission }) ?? []
51-
5250
guard let self = self else { return }
5351
if permission.authorized {
5452
self.delegate?.didAllowPermission(permission)
@@ -59,6 +57,7 @@ public class SPPermissionsNativeController: NSObject, SPPermissionsControllerInt
5957

6058
if self.proceseedPermissions.isEmpty {
6159
self.memoryLocker = nil
60+
self.delegate?.didHidePermissions(self.permissions)
6261
}
6362
})
6463
}

0 commit comments

Comments
 (0)