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: Sources/MMMCommonUI/MMMLoadableImageView.swift
+32-13Lines changed: 32 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,6 @@ public final class MMMLoadableImageView: NonStoryboardableView {
34
34
/// Note that in case of the `.fill` mode the bounds of this view might reside outside of the receiver's bounds.
35
35
publicvaralignmentView:UIView{ imageView }
36
36
37
-
// No reason to open this for changes at any time.
38
-
privateletplaceholderImage:UIImage?
39
-
40
37
privatevarimageObserver:MMMLoadableObserver?
41
38
42
39
/// A loadable image this image view should display and track. Just set and forget.
@@ -58,13 +55,30 @@ public final class MMMLoadableImageView: NonStoryboardableView {
58
55
}
59
56
}
60
57
61
-
// MARK: Init
62
-
63
-
// TODO: visually distinguish between 'loading' and 'failed to load' states, e.g. by using two placeholders or possibly using "shimmer"-kind animation.
64
-
// TODO: this is where effects like shadows and corners can be added as well.
0 commit comments