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
/// Gravatar allows users to self-rate their images so that they can indicate if an image is appropriate for a certain audience. By default, only `general`
6
+
/// rated
7
+
/// images are displayed unless you indicate that you would like to see higher ratings.
8
+
///
9
+
/// If the requested email hash does not have an image meeting the requested rating level, then the default avatar is returned (See: ``DefaultAvatarOption``)
10
+
publicenumRating:String,Sendable,CaseIterable{
11
+
/// Suitable for display on all websites with any audience type.
12
+
case general ="g"
13
+
/// May contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence.
14
+
case parentalGuidance ="pg"
15
+
/// May contain such things as harsh profanity, intense violence, nudity, or hard drug use.
16
+
case restricted ="r"
17
+
/// May contain sexual imagery or extremely disturbing violence.
Copy file name to clipboardExpand all lines: Modules/Sources/WordPressUI/Extensions/UIImageView+Gravatar.swift
+1-48Lines changed: 1 addition & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -21,31 +21,13 @@ private class GravatarNotificationWrapper {
21
21
/// UIImageView Helper Methods that allow us to download a Gravatar, given the User's Email
22
22
///
23
23
extensionUIImageView{
24
-
25
-
/// Downloads and sets the User's Gravatar, given his email.
26
-
/// TODO: This is a convenience method. Please, remove once all of the code has been migrated over to Swift.
27
-
///
28
-
/// - Parameters:
29
-
/// - email: the user's email
30
-
/// - rating: expected image rating
31
-
///
32
-
/// This method uses deprecated types. Please check the deprecation warning in `GravatarRatings`. Also check out the UIImageView extension from the Gravatar iOS SDK as an alternative to download images. See: https://github.com/Automattic/Gravatar-SDK-iOS.
33
-
@available(*, deprecated, message:"Usage of the deprecated type: GravatarRatings.")
/// Downloads and sets the User's Gravatar, given his email.
40
25
///
41
26
/// - Parameters:
42
27
/// - email: the user's email
43
28
/// - rating: expected image rating
44
29
/// - placeholderImage: Image to be used as Placeholder
45
-
/// This method uses deprecated types. Please check the deprecation warning in `GravatarRatings`. Also check out the UIImageView extension from the Gravatar iOS SDK as an alternative to download images. See: https://github.com/Automattic/Gravatar-SDK-iOS.
46
-
@available(*, deprecated, message:"Usage of the deprecated type: GravatarRatings.")
0 commit comments