dragDetector returns a GeometryReader which is a View
You can look at the documentation for GeometryReader and Color.clear, both of them conform to View.
I think it will be best to start simple by going through the basics of SwiftUI. There is great documentation / videos on Apple Developer website.
Trying to learn SwiftUI by reading through code might not be the best approach, without the proper understanding of the basics of SwiftUI
Topic:
Community
SubTopic:
Apple Developers
Tags: