SwiftUI/PropertyWrapper/@EnvironmentObject: Difference between revisions

From Azupedia
Jump to navigation Jump to search
imported>Fire
Created page with "{{Infobox Swift |name=@EnvironmentObject |Type=Structure |iOS=13.0 |iPadOS=13.0 |macOS=10.15 |MacCatalyst=13.0 |tvOS=13.0 |watchOS=6.0 |Website={{URL|https://developer.apple.com/documentation/swiftui/environmentobject}} }} 複数のView間で、変数を共有監視する場合に使用する。 == SEE ALSO == @State@ObservedObject EnvironmentObject"
 
(No difference)

Latest revision as of 17:29, 25 November 2022

@EnvironmentObject
TypeStructure
iOS13.0+
iPadOS13.0+
macOS10.15+
MacCatalyst13.0+
tvOS13.0+
watchOS6.0+
Websitedeveloper.apple.com/documentation/swiftui/environmentobject

複数のView間で、変数を共有監視する場合に使用する。

SEE ALSO

@State@ObservedObject