Skip to content

Commit

Permalink
[RELEASE] 3.1.0 / 2024121201 update
Browse files Browse the repository at this point in the history
뒤로가기 제스처 안되는 이슈 해결
  • Loading branch information
cchanmi committed Dec 24, 2024
1 parent ff17c84 commit ffcad9d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Smeem-iOS/Smeem-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2239,7 +2239,7 @@
CODE_SIGN_ENTITLEMENTS = "Smeem-iOS/Smeem-iOS.entitlements";
CODE_SIGN_IDENTITY = "Apple Distribution: YuJi Lee (K8LLWYQWXD)";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2024122400;
CURRENT_PROJECT_VERSION = 2024122401;
DEVELOPMENT_TEAM = K8LLWYQWXD;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Smeem-iOS/Info.plist";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ struct DetailDiaryCoachedView: View {
// MARK: - Body

var body: some View {
ZStack {
Color.white.ignoresSafeArea()
VStack(spacing: 0) {
SwiftUINavigationView(navigationViewModel: navigationViewModel,
selectedIndex: $selectedIndex,
Expand Down Expand Up @@ -98,13 +96,36 @@ struct DetailDiaryCoachedView: View {
dateText: response.createdAt,
authorText: response.username
)
.gesture(
DragGesture()
.onEnded { value in
if value.translation.width > 50 {
dismiss()
}
}
)
} else {
if isLoading {
SmemeEmptyView()
SmemeLoadingView()
}
}

GeometryReader { geomerty in
Rectangle()
.frame(height: geomerty.size.height)
.foregroundStyle(Color(UIColor.white))
.opacity(0.1)
.gesture(
DragGesture()
.onEnded { value in
if value.translation.width > 50 {
dismiss()
}
}
)}
.frame(width: screenWidth)

// "코칭 ON"일 때만 표시
if selectedIndex == 1 {
Spacer()
Expand Down Expand Up @@ -149,15 +170,6 @@ struct DetailDiaryCoachedView: View {
onError = false
}
}
}
.gesture(
DragGesture()
.onEnded { value in
if value.translation.width > 50 {
dismiss()
}
}
)
}
}
}
Expand Down

0 comments on commit ffcad9d

Please sign in to comment.