File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
GoInfoGame/GoInfoGame/quests/LongQuests/Components Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ struct LongFormImageView: View {
3131
3232 if let label = label {
3333 Text ( label)
34- . font ( . custom ( " Lato-Bold " , size : 14 ) )
34+ . font ( . system ( size : 15 , weight : . bold ) )
3535 . foregroundColor ( Color . white)
3636 . padding ( . bottom, 8 )
3737 }
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ struct QuestOptions: View {
3030 @State private var expandedImageId : UUID ? = nil
3131
3232 @State private var selectedImageURL : String ? = nil
33+
34+ @State private var selectedImageText : String ? = nil
3335
3436 var body : some View {
3537
@@ -49,6 +51,10 @@ struct QuestOptions: View {
4951 width: 300 ,
5052 height: 300
5153 )
54+ Text ( selectedImageText ?? " " )
55+ . font ( . system( size: 15 , weight: . bold) )
56+ . foregroundColor ( Color . black)
57+ . padding ( . bottom, 8 )
5258 Spacer ( )
5359 Button ( " Close " ) {
5460 selectedImageURL = nil
@@ -79,6 +85,8 @@ struct QuestOptions: View {
7985 )
8086 . onLongPressGesture {
8187 selectedImageURL = imageUrl
88+ selectedImageText = option. choiceText
89+
8290 }
8391 } else {
8492 ZStack {
@@ -89,7 +97,7 @@ struct QuestOptions: View {
8997 . clipped ( )
9098
9199 Text ( option. choiceText)
92- . font ( . custom ( " Lato-Bold " , size : 14 ) )
100+ . font ( . system ( size : 15 , weight : . bold ) )
93101 . foregroundColor ( Color . white)
94102 . padding ( . bottom, 8 )
95103 }
You can’t perform that action at this time.
0 commit comments