Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions