Skip to content

'Switch must be exhaustive' error when building for iOS #476

@danemco

Description

@danemco

When building for iOS, I get the error: "switch must be exhaustive" in the Fingerprint swift file.

My solution was to add the opticID case to the list:

 if #available(iOS 11.0, *) {
                switch(authenticationContext.biometryType) {
                case .none:
                    biometryType = "none";
                case .touchID:
                    biometryType = "finger";
                case .faceID:
                    biometryType = "face";
                case .opticID:
                    biometryType = "optic";
                }
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions