Add dynamic type boundaries

This commit is contained in:
Jackson Harper
2023-07-24 15:37:50 +08:00
parent 1f8f5f33ca
commit 445600cd3a
2 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,7 @@ import Views
)
#endif
}
.dynamicTypeSize(.small ... .large)
.listStyle(.sidebar)
}

View File

@ -38,6 +38,7 @@ public struct LibraryItemCard: View {
}
.padding(.bottom, 5)
.draggableItem(item: item)
.dynamicTypeSize(.xSmall ... .accessibility1)
}
var isFullyRead: Bool {
@ -192,6 +193,7 @@ public struct LibraryItemCard: View {
public var articleInfo: some View {
VStack(alignment: .leading, spacing: 5) {
readInfo
.dynamicTypeSize(.xSmall ... .medium)
Text(item.unwrappedTitle)
.font(.body).fontWeight(.semibold)