Skip to content

Commit 2077641

Browse files
authored
fix: adjust font family and size in footnotes popup
1 parent 1542a7e commit 2077641

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/YouVersionPlatformReader/Sheets/BibleReaderFootnotesView.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ struct BibleReaderFootnotesView: View {
66

77
var body: some View {
88
let textOptions = BibleTextOptions(
9-
fontFamily: ReaderFonts.defaultFontFamily,
10-
fontSize: ReaderFonts.defaultFontSize * 0.80,
9+
fontFamily: viewModel.textOptions.fontFamily,
10+
fontSize: 16,
1111
lineSpacing: viewModel.textOptions.lineSpacing,
1212
paragraphSpacing: viewModel.textOptions.paragraphSpacing,
1313
textColor: viewModel.textOptions.textColor,
@@ -30,15 +30,14 @@ struct BibleReaderFootnotesView: View {
3030
.padding(.bottom)
3131
Divider()
3232
VStack(alignment: .leading) {
33-
ForEach(viewModel.footnotesToDisplay.indices, id: \.self) { index in
34-
let footnote = viewModel.footnotesToDisplay[index]
33+
ForEach(Array(viewModel.footnotesToDisplay.enumerated()), id: \.offset) { index, footnote in
34+
let character = String(UnicodeScalar(97 + (index % 26))!)
3535
HStack(alignment: .firstTextBaseline) {
36-
let character = String(UnicodeScalar(UnicodeScalar("a").value + UInt32(index)) ?? " ")
3736
Text(character + ".")
37+
.font(ReaderFonts.fontLabelS)
3838
Text(footnote.text.asAttributedString)
3939
.multilineTextAlignment(.leading)
4040
}
41-
.font(ReaderFonts.fontLabelS)
4241
Divider()
4342
}
4443
}
@@ -49,6 +48,7 @@ struct BibleReaderFootnotesView: View {
4948
.padding(.horizontal, 24)
5049
.padding(.top, 24)
5150
}
51+
5252
}
5353

5454
#Preview {

0 commit comments

Comments
 (0)