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
* Decouple the avatar identifier from the model
* Update demo app
* Update minor version
* Allow warnings
* Use `profileIdentifier?.avatarIdentifier in the demo screen.
Copy file name to clipboardExpand all lines: Sources/GravatarUI/ProfileView/ProfileViewConfiguration.swift
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,18 @@ public struct ProfileViewConfiguration: UIContentConfiguration {
24
24
/// The style for the profile view.
25
25
publicletprofileStyle:Style
26
26
/// The identifier for the avatar image to be loaded in the profile view.
27
+
@available(
28
+
*,
29
+
deprecated,
30
+
renamed:"avatarIdentifier",
31
+
message:"Set `avatarIdentifier` explicitly and don't use the model's avatarIdentifier. It's because the `ProfileModel.avatarIdentifier` always refers to the primary email's avatar even if we query the profile with a secondary email."
0 commit comments