I’m wondering this as well 5 years later. HackingWithSwift says it only works in a widget, but HolySwift infers it can work anywhere, but I cannot get it to work.
https://www.hackingwithswift.com/quick-start/swiftui/when-should-you-use-containerrelativeshape
https://holyswift.app/containerrelativeshape-swiftui-tutorial/
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: