Skip to content

Commit

Permalink
revert simple example
Browse files Browse the repository at this point in the history
  • Loading branch information
gh123man committed Nov 24, 2024
1 parent b5a3d0f commit 6317c96
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions Examples/LazyPagerExampleApp/SimpleExample.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,10 @@ struct SimpleExample: View {
@State var show = false

var body: some View {
VStack {
Button("Show") {
show.toggle()
}
}
.fullScreenCover(isPresented: $show) {
LazyPager(data: data) { element in
VStack {
Image(element)
.resizable()
.aspectRatio(contentMode: .fit)
.onTapGesture {
print("tap image")
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.contentShape(Rectangle())
.onTapGesture {
show.toggle()
print("tap background")
}
}
LazyPager(data: data) { element in
Image(element)
.resizable()
.aspectRatio(contentMode: .fit)
}
}
}
Expand Down

0 comments on commit 6317c96

Please sign in to comment.