Skip to content

Commit bdd280c

Browse files
committed
Fix sheet animation glitch (remove bookmark) (#367)
1 parent 5d55d75 commit bdd280c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

SNUTT-2022/SNUTT/Views/Components/Lecture/ExpandableLectureCell.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,25 +131,25 @@ struct ExpandableLectureCell: View {
131131
)))
132132
.id(reviewDetailId)
133133
}
134-
.sheet(isPresented: $isDetailPagePresented) {
135-
NavigationView {
136-
LectureDetailScene(
137-
viewModel: .init(container: viewModel.container),
138-
lecture: lecture,
139-
displayMode: .preview(shouldHideDismissButton: false)
140-
)
141-
.analyticsScreen(.lectureDetail(.init(
142-
lectureID: lecture.referenceId,
143-
referrer: viewModel.detailReferrer
144-
)))
145-
}
146-
}
147134
}
148135
}
149136
.foregroundColor(.white)
150137
.padding(.vertical, 10)
151138
.padding(.horizontal, 15)
152139
}
140+
.sheet(isPresented: $isDetailPagePresented) {
141+
NavigationView {
142+
LectureDetailScene(
143+
viewModel: .init(container: viewModel.container),
144+
lecture: lecture,
145+
displayMode: .preview(shouldHideDismissButton: false)
146+
)
147+
.analyticsScreen(.lectureDetail(.init(
148+
lectureID: lecture.referenceId,
149+
referrer: viewModel.detailReferrer
150+
)))
151+
}
152+
}
153153
.onChange(of: isSelected) { isSelected in
154154
if isSelected {
155155
resignFirstResponder()

0 commit comments

Comments
 (0)