Skip to content

Instantly share code, notes, and snippets.

@shtnkgm
Created April 20, 2023 07:00
Show Gist options
  • Save shtnkgm/82f6c866c8949e75a5b37d2ea18dfa7d to your computer and use it in GitHub Desktop.
Save shtnkgm/82f6c866c8949e75a5b37d2ea18dfa7d to your computer and use it in GitHub Desktop.
struct ContentView: View {
var body: some View {
ZStack(alignment: .top) {
B.black.opacity(0.2)
}
ScrollView(showsIndicators: false) {
Button {
print(">>>> tap button")
} label: {
Text("Button")
.futton {
print(">>>> tap background")
} label: {
Colorrame(height: 100)
.frame(maxWidth: .infinity)
}
.background(Color.white)
}
.frame(height: 100)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment