Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Despite being marked unavailable, this class's init?(coder:) is actually called when totp is registered:

coder.encode(enrolledFactors, forKey: kEnrolledFactorsCodingKey)

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ import Foundation

@available(*, unavailable)
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
totpInfo = nil
super.init(coder: coder)
}

@available(*, unavailable)
override class var supportsSecureCoding: Bool {
super.supportsSecureCoding
}
}
#endif
Loading