You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-24Lines changed: 37 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,26 +24,6 @@ We deeply appreciate your feedback on this Developer Preview as we work towards
24
24
-[Geo](https://docs.amplify.aws/lib/geo/getting-started/q/platform/ios) - for adding location-based capabilities to your app.
25
25
-[Storage](https://docs.amplify.aws/lib/storage/getting-started/q/platform/ios) - store complex objects like pictures and videos to the cloud.
26
26
27
-
All services and features not listed above are supported via the [Swift SDK](https://github.com/awslabs/aws-sdk-swift) or if supported by a category can be accessed via the Escape Hatch like below:
let task = awsS3.headBucket(input: input) { result in
38
-
switch result {
39
-
case .success(let response):
40
-
print(response)
41
-
case .failure(let error):
42
-
print(error)
43
-
}
44
-
}
45
-
```
46
-
47
27
## Platform Support
48
28
49
29
Amplify supports iOS 13+ and macOS 10.15+. Support for watchOS and tvOS is coming in future releases.
@@ -90,14 +70,17 @@ Amplify requires Xcode 13.4 or higher to build.
90
70
91
71
```swift
92
72
importAmplify
73
+
importAWSCongitoAuthPlugin
93
74
importAWSAPIPlugin
94
75
importAWSDataStorePlugin
95
76
96
-
// ... later
77
+
// ...
97
78
98
79
funcinitializeAmplify() {
99
80
do {
81
+
try Amplify.add(AWSCognitoAuthPlugin())
100
82
try Amplify.add(AWSAPIPlugin())
83
+
try Amplify.add(AWSDataStorePlugin())
101
84
// and so on ...
102
85
try Amplify.configure()
103
86
} catch {
@@ -111,13 +94,43 @@ Amplify requires Xcode 13.4 or higher to build.
111
94
```swift
112
95
importAmplify
113
96
114
-
// ... later
97
+
// ...
115
98
116
-
funcdoUpload() {
117
-
Amplify.Storage.uploadFile(...)
99
+
funcsignIn() asyncthrows {
100
+
let signInResult =tryawait Amplify.Auth.signIn(...)
101
+
// ...
118
102
}
119
103
```
120
104
105
+
## Escape Hatch
106
+
107
+
All services and features not listed in the [**Features/API sectios**](#featuresapis) are supported via the [Swift SDK](https://github.com/awslabs/aws-sdk-swift) or if supported by a category can be accessed via the Escape Hatch like below:
0 commit comments