Skip to content

Commit 3765917

Browse files
Merge pull request #179 from YAPP-Github/refactor/#176-sheet-interaction
[Refactor] #176 - 지도 내 바텀시트 인터랙션 UX 개선
2 parents c7b636d + 705d2ef commit 3765917

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

Neki-iOS/Features/Map/Sources/Presentation/Sources/View/NearPhotoBoothListSheet.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ private extension NearPhotoBoothListSheet {
3939
}
4040
.scrollIndicators(.never)
4141
.contentMargins(.horizontal, 20, for: .scrollContent)
42+
.scrollDisabled(false)
4243
} header: {
4344
Text("네컷 사진 브랜드")
4445
.frame(maxWidth: .infinity, alignment: .leading)

Neki-iOS/Features/Map/Sources/Presentation/Sources/View/NekiSheet/NekiSheet.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,15 @@ public struct NekiSheet<Content: View, Controllers: View>: View {
8383

8484
private extension NekiSheet {
8585
var indicator: some View {
86-
RoundedRectangle(cornerRadius: configuration.indicatorSize.height / 2)
87-
.fill(configuration.indicatorColor)
88-
.frame(width: configuration.indicatorSize.width, height: configuration.indicatorSize.height)
89-
.padding(.vertical, 10)
86+
VStack {
87+
RoundedRectangle(cornerRadius: configuration.indicatorSize.height / 2)
88+
.fill(configuration.indicatorColor)
89+
.frame(width: configuration.indicatorSize.width, height: configuration.indicatorSize.height)
90+
}
91+
.frame(maxWidth: .infinity)
92+
.frame(height: 24)
93+
.contentShape(.rect)
94+
.onTapGesture { withAnimation(configuration.animation) { selection = .large } }
9095
}
9196
}
9297

0 commit comments

Comments
 (0)