I’m creating a cross-platform app, iOS and macOS (not MacOS Catalyst), in SwiftUI.
I’m supporting Dynamic Type through the .font(.title) .font(.caption) etc. modifiers.
This works great on iOS, however MacOS doesn’t support Dynamic Type.
I know users can change the font size on their Mac system wide through the display settings, but I would like to add an app preference where users can change the font size only for my app. Something similar like, for example, the mail app offers (Format > Style > Bigger)
I’m quite an experienced iOS dev,but this is my first MacOS app and my first real SwiftUI-only app. I’ve searched google and SO for half a day but can not find a way to do this.
Can this be done? Perhaps there is some kind of modifier to scale the font with a factor (and I could make that factor a global variable that would increase or decrease by the user changing this setting), or perhaps there is another way?

dynamicTypeSize, but the doc says: "On macOS, this value cannot be changed by users and does not affect the text size."