Skip to content

Instantly share code, notes, and snippets.

@navsing
Created January 5, 2023 23:45
Show Gist options
  • Save navsing/9a9ecda4a325b9508ac13f8bdca87a8f to your computer and use it in GitHub Desktop.
Save navsing/9a9ecda4a325b9508ac13f8bdca87a8f to your computer and use it in GitHub Desktop.
Shimmer Sample View
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