@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
原文:https://www.cnblogs.com/zuidap/p/15241854.html