Standardizing on and fixing indentation issue
@@ -17,8 +17,8 @@ struct RestoreWalletView: MVIView {
.navigationBarTitle("Restore my wallet", displayMode: .inline)
}
- func view(model: RestoreWallet.Model, intent: @escaping IntentReceiver) -> some View {
- return Group {
+ @ViewBuilder func view(model: RestoreWallet.Model, intent: @escaping IntentReceiver) -> some View {
+
if let _ = model as? RestoreWallet.ModelWarning {
WarningView(intent: intent)
.zIndex(1)
@@ -29,7 +29,6 @@ struct RestoreWalletView: MVIView {
.zIndex(0)
}
}
- }
struct WarningView: View {
let intent: IntentReceiver
