Because you can't, the notion of a namespace as implemented in other languages like Java, C++, and C# is non-existent in Swift and SwiftUI. What you're doing is nesting value types and not creating namespaces. Nesting views in SwiftUI: https://luomein.medium.com/composable-generic-swiftui-view-part-2-d695d87b0f96
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: