File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
GoInfoGame/GoInfoGame/quests/LongQuests/View Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments