swiftUI 环境值

 @Environment(\.horizontalSizeClass) private var horizontalSizeClass: UserInterfaceSizeClass?

    @Environment(\.dynamicTypeSize) private var dynamicTypeSize: DynamicTypeSize

    @Environment(\.symbolVariants) private var symbolVariant: SymbolVariants

@Environment(\.symbolRenderingMode) private var symbolRenderingMode: SymbolRenderingMode?

@Environment(\.dismissSearch) var dismissSearch

@Environment(\.isSearching) var isSearching

@Environment(\.accessibilityReduceTransparency) var reduceTransparency

@Environment(\.dismiss) var dismiss

@Environment(\.colorScheme) var scheme

 

swiftUI 环境值

上一篇:Springboot中多层object嵌套转换类的处理方法?


下一篇:spring boot 系列之八:SpringBoot处理定时任务