首页 > 编程语言 > 详细

swiftUI 环境值

时间:2021-09-08 20:19:04      阅读:28      评论:0      收藏:0      [点我收藏+]

 @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 环境值

原文:https://www.cnblogs.com/zuidap/p/15241854.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!