File tree Expand file tree Collapse file tree
PennMobileShared/Subletting Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,15 +101,15 @@ struct SubletDetailOnly: View {
101101 ForEach ( sublet. images) { image in
102102 KFImage ( URL ( string: image. imageUrl) )
103103 . placeholder {
104- Color . gray
105- . aspectRatio ( contentMode: . fit)
104+ ProgressView ( )
106105 }
107106 . resizable ( )
108107 . aspectRatio ( contentMode: . fit)
109108 . cornerRadius ( 10 )
110109 }
111110 }
112- . tabViewStyle ( PageTabViewStyle ( indexDisplayMode: . never) )
111+ . tabViewStyle ( . page( indexDisplayMode: . never) )
112+ . frame ( height: 300 )
113113
114114 VStack ( alignment: . leading) {
115115 HStack {
Original file line number Diff line number Diff line change @@ -52,8 +52,12 @@ struct SubletDisplayRow: View {
5252 } else {
5353 KFImage ( URL ( string: sublet. images. count > 0 ? sublet. images [ 0 ] . imageUrl : " " ) )
5454 . placeholder {
55- Color . gray
56- . aspectRatio ( contentMode: . fill)
55+ if sublet. images. count > 0 {
56+ ProgressView ( )
57+ } else {
58+ Color . gray
59+ . aspectRatio ( contentMode: . fill)
60+ }
5761 }
5862 . resizable ( )
5963 . aspectRatio ( contentMode: . fit)
Original file line number Diff line number Diff line change @@ -21,8 +21,12 @@ public struct SubletDisplayBox: View {
2121 VStack ( alignment: . leading) {
2222 KFImage ( URL ( string: sublet. images. count > 0 ? sublet. images [ 0 ] . imageUrl : " " ) )
2323 . placeholder {
24- Color . gray
25- . aspectRatio ( contentMode: . fill)
24+ if sublet. images. count > 0 {
25+ ProgressView ( )
26+ } else {
27+ Color . gray
28+ . aspectRatio ( contentMode: . fill)
29+ }
2630 }
2731 . resizable ( )
2832 . aspectRatio ( contentMode: . fit)
You can’t perform that action at this time.
0 commit comments