Last active
August 29, 2015 14:07
-
-
Save marklarr/3c61cf4e6c74137012ba to your computer and use it in GitHub Desktop.
NSUserNotificationAction.isEqual sets authenticationRequired
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Playground - noun: a place where people can play | |
import UIKit | |
import Foundation | |
var authRequiredAction = UIMutableUserNotificationAction() | |
authRequiredAction.authenticationRequired = true | |
var authNotRequiredAction = UIMutableUserNotificationAction() | |
authNotRequiredAction.authenticationRequired = false | |
authRequiredAction.authenticationRequired == true //true | |
authNotRequiredAction.authenticationRequired == false //true | |
authNotRequiredAction.isEqual(authRequiredAction) | |
authRequiredAction.authenticationRequired == true //true | |
// Fails | |
authNotRequiredAction.authenticationRequired == false //false | |
Looks like someone at Apple accidentally did
obj1.authenticationRequired = obj2.authenticationRequired
rather than
obj1.authenticationRequired == obj2.authenticationRequired
in isEqual
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://openradar.appspot.com/radar?id=5780480586678272