Как применить .itali c () к .largeTitle Font? - PullRequest
1 голос
/ 08 января 2020
import SwiftUI
import PlaygroundSupport

struct ContentView: View {

    var body: some View {

        VStack {
            ForEach(Font.TextStyle.allCases, id: \.self) { style in
                Text(self.describe(style: style)).font(.system(style)).italic()
            }
        }
    }
    func describe(style: Font.TextStyle) -> String {
        var s: String = ""
        print(style, terminator: "", to: &s)
        return s
    }
}

PlaygroundPage.current.setLiveView(ContentView())

производить

enter image description here

это ошибка или я что-то пропустил?

1 Ответ

0 голосов
/ 08 февраля 2020

Окончательный ответ от Apple

Разрешение: Расследование завершено - Работает, как в настоящее время разработано

Удачи с Apple ...

...