Structure¶
ScrollViewReader¶
Creates programatic scrolling by ascribing a child defined as a function of a ScrollViewProxy.¶
Declaration¶
@frozen struct ScrollViewReader<Content> : View where Content : View
Availability¶
iOS 14.0+
macOS 11.0+
tvOS 14.0+
watchOS 7.0+
Topics¶
Instance Property¶
body The content and behavior of the view.
content A ViewBuilder closure that receives the ScrollViewProxy as a parameter
Initializer¶
init(content:) Initializes with the closure content. The proxy passed to the closure may NOT be messaged while content is executing (this will cause a runtime error) but only from actions created within content such as gesture handlers or the onChange() function.
Type Alias¶
Body The type of view representing the body of this view.