Skip to content

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

@jgale

Description

@jgale

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)
    }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions