spatialOverlayPreferenceValue(_:alignment:_:)
Uses the specified preference value from the view to produce another view occupying the same 3D space of the first view.
Declaration
nonisolated func spatialOverlayPreferenceValue<K, V>(_ key: K.Type, alignment: Alignment3D = .center, @ViewBuilder _ transform: @escaping (K.Value) -> V) -> some View where K : PreferenceKey, V : View