|
|
@@ -5,6 +5,7 @@ struct DefinitionRow: View {
|
|
|
var term: String
|
|
|
var definition: String
|
|
|
var color: Color?
|
|
|
+ var fontSize: Font?
|
|
|
|
|
|
var body: some View {
|
|
|
VStack(alignment: .leading) {
|
|
|
@@ -12,10 +13,10 @@ struct DefinitionRow: View {
|
|
|
if let color = color {
|
|
|
Image(systemName: "circle.fill").foregroundStyle(color)
|
|
|
}
|
|
|
- Text(term).font(.subheadline).fontWeight(.semibold)
|
|
|
- }
|
|
|
+ Text(term).font(fontSize ?? .subheadline).fontWeight(.semibold)
|
|
|
+ }.padding(.bottom, 5)
|
|
|
Text(definition)
|
|
|
- .font(.subheadline)
|
|
|
+ .font(fontSize ?? .subheadline)
|
|
|
.foregroundColor(.secondary)
|
|
|
}
|
|
|
.padding(.vertical, 5)
|