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
This scope combines the Avatar picker and the About editor, allowing to switch between them directly in the Quick Editor UI.
28
+
29
+

30
+
31
+
## Quick Editor - SwiftUI
13
32
14
33
SDK offers a modifier function to display the QuickEditor sheet. QuickEditor starts the OAuth flow internally to capture an access token. Please refer to <doc:GravatarOAuth> about how to configure the SDK about this.
Copy file name to clipboardExpand all lines: Sources/GravatarUI/SwiftUI/ProfileEditor/QuickEditorScopeOption.swift
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,11 @@ public struct QuickEditorScopeOption {
15
15
}
16
16
17
17
/// Creates a `QuickEditorScopeOption` configured for the avatar picker scope.
18
+
///
19
+
/// Displays the UI for managing user avatars.
20
+
///
21
+
/// 
22
+
///
18
23
/// - Parameter config: Configuration to apply to the avatar picker.
19
24
/// - Returns: A configured instance of `QuickEditorScopeOption` for the avatar picker scope.
20
25
publicstaticfunc avatarPicker(
@@ -26,6 +31,9 @@ public struct QuickEditorScopeOption {
26
31
}
27
32
28
33
/// Creates a `QuickEditorScopeOption` configured for the about info editor scope.
34
+
///
35
+
/// Displays the UI for editing the "About" section of the Gravatar profile.
36
+
/// 
29
37
/// - Parameter config: Configuration to apply to the about editor. Defaults to the standard configuration.
30
38
/// - Returns: A configured instance of `QuickEditorScopeOption` for the about info editor scope.
31
39
publicstaticfunc aboutEditor(
@@ -36,6 +44,11 @@ public struct QuickEditorScopeOption {
36
44
)
37
45
}
38
46
47
+
/// Creates a `QuickEditorScopeOption` configured for the avatar picker & about info editor scope.
48
+
///
49
+
/// This scope allows switching between Avatar Picker and About editor from within the Quick Editor.
50
+
/// - Parameter avatarPickerAndAboutEditorConfig: Configuration to apply to the avatar picker and about editor. Defaults to the standard configuration.
51
+
/// - Returns: A configured instance of `QuickEditorScopeOption` for the avatar picker & about info editor scope.
0 commit comments