Skip to content

Commit 1f6a62c

Browse files
author
Achyut Kumar M
committed
reposition id text and add 'hide quest' button
1 parent 206a44a commit 1f6a62c

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

GoInfoGame/GoInfoGame/quests/LongQuests/View/LongForm.swift

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,32 @@ struct LongForm: View, QuestForm {
4646
var body: some View {
4747
ZStack {
4848
VStack(alignment: .leading) {
49-
VStack {
5049
HStack {
5150
Text("\(elementHeading())")
5251
.font(.custom("Lato-Bold", size: 16))
53-
.padding([.leading], 20)
54-
Text("ID: \(questID ?? "0")")
55-
.font(.custom("Lato-Regular", size: 13))
56-
.padding([.leading], 20)
52+
Spacer()
53+
Button("Hide Quest") {
54+
withAnimation {
55+
MapViewPublisher.shared.dismissSheet.send(.hideElement(questID ?? "0"))
56+
presentationMode.wrappedValue.dismiss()
57+
}
58+
59+
}
5760
}
61+
5862
.padding(EdgeInsets(top: 20, leading: 20, bottom: 10, trailing: 20))
63+
64+
Text("ID: \(questID ?? "0")")
65+
.font(.custom("Lato-Regular", size: 13))
66+
.padding([.leading], 20)
67+
5968
LongFormDismissButtonView {
6069
withAnimation {
6170
presentationMode.wrappedValue.dismiss()
6271
}
6372
}
6473
.padding([.trailing], 20)
65-
}
74+
6675

6776

6877
VStack {

0 commit comments

Comments
 (0)