Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScaledFont doesn't work with iOS 15's AttributedString/Markdown #4

Open
jgale opened this issue Feb 9, 2022 · 1 comment
Open

ScaledFont doesn't work with iOS 15's AttributedString/Markdown #4

jgale opened this issue Feb 9, 2022 · 1 comment
Labels

Comments

@jgale
Copy link

jgale commented Feb 9, 2022

I just discovered that ScaledFont doesn't work with the new iOS 15 AttributedString/Markdown support. It just uses the same font for the whole string.

I'm not sure if it's reasonable to expect it would, given that we are specifying what exact font to use in the plist, I supposed it would probably need a different API. I just thought I'd get your thoughts on this.

Works:

struct ContentView: View {
    var body: some View {
        Text("**Depart:** 4:30 PM")
            .font(.subheadline)
    }
}

Doesn't work:

struct ContentView: View {
    var body: some View {
        Text("**Depart:** 4:30 PM")
            .scaledFont(.subheadline)
    }
}
@kharrison
Copy link
Owner

Thanks, that's interesting. Will need to investigate what's going on and see what if anything can be done,

@kharrison kharrison added the enhancement New feature or request label Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants