Created
January 5, 2023 23:45
-
-
Save navsing/9a9ecda4a325b9508ac13f8bdca87a8f to your computer and use it in GitHub Desktop.
Shimmer Sample View
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScrollView(.vertical, showsIndicators: false) { | |
VStack { | |
HStack { | |
VStack (alignment: .leading) { | |
Text("Shimmer").fontWeight(.heavy).font(.largeTitle).foregroundColor(Color(UIColor.systemOrange)) | |
} | |
Spacer() | |
} | |
ForEach(0..<4){_ in | |
ZStack { | |
Rectangle() | |
.foregroundColor(.clear) | |
.background(Color.blue.opacity(0.5)).frame(height: 250) | |
.cornerRadius(20) | |
.shadow(color: Color(.gray).opacity(0.3), radius: 20, x: 0, y: 20) | |
.padding(.bottom, 20) | |
VStack { | |
Text("Shimmer").font(.largeTitle).fontWeight(.heavy).foregroundColor(.white) | |
Text("And Redacted").font(.largeTitle).fontWeight(.heavy).foregroundColor(.white) | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment