When I'm trying to add .containerRelativeFrame in my SwiftUI code but getting errors :
Like this, I'm getting errors :
- Value of type 'some View' has no member 'containerRelativeFrame'
- Reference to member 'horizontal' cannot be resolved without a contextual type
- Reference to member 'vertical' cannot be resolved without a contextual type
--How to resolve this--
This API is only available starting from iOS 17.
@available(iOS 17, *)
above your struct definition: