how to create a function that returns a view in swiftui code example
Example: func that returns a view swiftui
@ViewBuilder func getView(view: String) -> some View {
switch view {
case "CreateUser":
Text(view)
case "Abc":
Image("Abc")
default:
EmptyView()
}
}