小编ICa*_*ame的帖子

SwiftUI 标题字体

我正在尝试找到一种获取 aList标题的系统字体的好方法。这就是我的意思:

struct ContentView: View {
    var body: some View {
        List {
            Section(header: Text("Test")) {
                Text("Blablabla")
            }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

基本上,有没有办法以编程方式获取图像中显示“测试”的文本的字体Text,例如,我可以在对象的其他地方使用它?

I'm font of the trying to make a collapsible header by using DisclosureGroup, however the font of the DisclosureGroup is different from the font of the Section.

swift swiftui

6
推荐指数
1
解决办法
167
查看次数

标签 统计

swift ×1

swiftui ×1