Created
July 4, 2022 05:24
-
-
Save ANG13T/4e19695481088155b3ad911799a3e2d7 to your computer and use it in GitHub Desktop.
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
struct CarouselView: View { | |
var body: some View { | |
List { | |
VStack(alignment: .leading, spacing: 5) { | |
Image(systemName: "hand.raised.fill").foregroundColor(.blue).font(.system(size: 30)).padding(.top, 5) | |
Text("Hands-Only CPR").bold().padding(.top, 5) | |
Button("**BEGIN**") { | |
print("Begin 1") | |
}.foregroundColor(.blue).padding(.bottom, 5) | |
}.padding() | |
VStack(alignment: .leading, spacing: 5) { | |
Image(systemName: "heart.fill").foregroundColor(.pink).font(.system(size: 30)).padding(.top, 5) | |
Text("Traditional CPR").bold().padding(.top, 5) | |
Button("**BEGIN**") { | |
print("Begin 2") | |
}.foregroundColor(.pink).padding(.bottom, 5) | |
}.padding() | |
VStack(alignment: .leading, spacing: 5) { | |
Image(systemName: "text.book.closed.fill").foregroundColor(.orange).font(.system(size: 30)).padding(.top, 5) | |
Text("About CPR").bold().padding(.top, 5) | |
Button("**BEGIN**") { | |
print("Begin 3") | |
}.foregroundColor(.orange).padding(.bottom, 5) | |
}.padding() | |
VStack(alignment: .leading, spacing: 5) { | |
Image(systemName: "gearshape.fill").foregroundColor(.green).font(.system(size: 30)).padding(.top, 5) | |
Text("Settings").bold().padding(.top, 5) | |
Button("**ENTER**") { | |
print("Begin 4") | |
}.foregroundColor(.green).padding(.bottom, 5) | |
}.padding() | |
}.listStyle(CarouselListStyle()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment