Commit e5f70b3
committed
Fix Swift compiler warnings
- ConnectButton: activate the orphaned lessThanOrEqualTo bottom
constraint so its return value is not ignored.
- SignInWithAppleAuthentication: handle ASAuthorizationError.Code
cases added after the SDK's iOS 14.2 deployment target behind
availability checks:
.notInteractive -> .notHandled
.matchedExcludedCredential -> .failed
.credentialImport -> .failed
.credentialExport -> .failed
so the switch is exhaustive on current SDKs and each new case
surfaces the closest meaningful AuthenticationError.1 parent dbe7c1d commit e5f70b3
2 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
44 | 70 | | |
45 | 71 | | |
46 | 72 | | |
| |||
0 commit comments