Skip to content

Commit a09585d

Browse files
authored
Merge pull request #229 from TaskarCenterAtUW/fix-quest-option-font
Fix quest option font
2 parents 351c325 + 822a0c3 commit a09585d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

GoInfoGame/GoInfoGame/quests/LongQuests/Components/LongFormImageView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

GoInfoGame/GoInfoGame/quests/LongQuests/Components/QuestOptions.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)