sparrowcode / PermissionsKit

Universal API for request permission and get its statuses.
https://x.com/sparrowcode_ios
MIT License
5.64k stars 462 forks source link

delegate functions not getting called for `native` implementation #260

Closed ajkerfaisal closed 3 years ago

ajkerfaisal commented 3 years ago

Delegate functions are not getting called for native implementation

let controller = SPPermissions.native([.camera])
controller.delegate = self
controller.present(on: vc)

But when implementation is for dialog, delegates are getting fired.

let controller = SPPermissions.dialog([.camera])
controller.delegate = self
controller.present(on: vc)

What I am missing here?

ivanvorobei commented 3 years ago

Can you save controller as property? Problem this, after present controller removed from memory by system and delegate don't available because week. Please, for future use bug template.

ivanvorobei commented 3 years ago

Fixed in version 6.6.5. Please, update.