MapReader
@available(iOS 13.0, *)
@_documentation(visibility: public)
@_spi(Experimental)
public struct MapReader<Content> : View where Content : View
Provides access to the underlying MapView
map via proxy.
Wrap Map
into a map reader to get access to the underlying map implementation.
var body: some View {
MapReader { proxy in
Map()
.onAppear {
configureUnderlyingMap(proxy.map)
}
}
}
-
Undocumented
Declaration
Swift
@_documentation(visibility: public) public typealias ContentProvider = (MapProxy) -> Content
-
Undocumented
Declaration
Swift
public var content: ContentProvider
-
Undocumented
Declaration
Swift
@_documentation(visibility: public) public init(content: @escaping ContentProvider)
-
Declaration
Swift
public var body: some View { get }