{"action":"created","issue":{"url":"https://api.github.com/repos/yankodimitrov/SwiftPasscodeLock/issues/22","labels_url":"https://api.github.com/repos/yankodimitrov/SwiftPasscodeLock/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/yankodimitrov/SwiftPasscodeLock/issues/22/comments","events_url":"https://api.github.com/repos/yankodimitrov/SwiftPasscodeLock/issues/22/events","html_url":"https://github.com/yankodimitrov/SwiftPasscodeLock/issues/22","id":107343772,"number":22,"title":"PasscodeLockViewController must have a successCallback","user":{"login":"ziogaschr","id":802700,"avatar_url":"https://avatars.githubusercontent.com/u/802700?v=3","gravatar_id":"","url":"https://api.github.com/users/ziogaschr","html_url":"https://github.com/ziogaschr","followers_url":"https://api.github.com/users/ziogaschr/followers","following_url":"https://api.github.com/users/ziogaschr/following{/other_user}","gists_url":"https://api.github.com/users/ziogaschr/gists{/gist_id}","starred_url":"https://api.github.com/users/ziogaschr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziogaschr/subscriptions","organizations_url":"https://api.github.com/users/ziogaschr/orgs","repos_url":"https://api.github.com/users/ziogaschr/repos","events_url":"https://api.github.com/users/ziogaschr/events{/privacy}","received_events_url":"https://api.github.com/users/ziogaschr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-19T16:43:27Z","updated_at":"2015-09-19T17:41:28Z","closed_at":null,"body":"I have the need to set a `successCallback` to `PasscodeLockViewController`.\r\nI see that there are two options:\r\n1. add a `public var successCallback: ((lock: PasscodeLockType) -> Void)?` which is then set as `passcodeLockVC.successCallback`\r\n2. make the `passcodeLockVC` a public var.\r\n\r\np.s.: Why the `successCallback` passes the `lock: PasscodeLockType`. Can you give me a good example? I might benefit from that."},"comment":{"url":"https://api.github.com/repos/yankodimitrov/SwiftPasscodeLock/issues/comments/141692869","html_url":"https://github.com/yankodimitrov/SwiftPasscodeLock/issues/22#issuecomment-141692869","issue_url":"https://api.github.com/repos/yankodimitrov/SwiftPasscodeLock/issues/22","id":141692869,"user":{"login":"ziogaschr","id":802700,"avatar_url":"https://avatars.githubusercontent.com/u/802700?v=3","gravatar_id":"","url":"https://api.github.com/users/ziogaschr","html_url":"https://github.com/ziogaschr","followers_url":"https://api.github.com/users/ziogaschr/followers","following_url":"https://api.github.com/users/ziogaschr/following{/other_user}","gists_url":"https://api.github.com/users/ziogaschr/gists{/gist_id}","starred_url":"https://api.github.com/users/ziogaschr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziogaschr/subscriptions","organizations_url":"https://api.github.com/users/ziogaschr/orgs","repos_url":"https://api.github.com/users/ziogaschr/repos","events_url":"https://api.github.com/users/ziogaschr/events{/privacy}","received_events_url":"https://api.github.com/users/ziogaschr/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T17:41:28Z","updated_at":"2015-09-19T17:41:28Z","body":"I just found out something else. I would like to pass in `PasscodeLockPresenter.presentPasscodeLock` my own Class which inherits from `PasscodeLockViewController`. I do this, as I have to force some UI changes from code, that I can't apply in the .xib file."}}