Last active
August 22, 2022 16:06
-
-
Save lutes1/5a4b6c813e8bc506c87790e1ca6dd9ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HeaderView( | |
viewModel: .init( | |
title: "Size", | |
leftButtonTitle: "Done", | |
leftButtonAction: { | |
presentationMode.wrappedValue.dismiss() | |
} | |
), | |
leftControls: { | |
Stepper(/*...*/) | |
.frame(width: 100) | |
}, | |
rightControls: { | |
Text(canvasViewModel.size.title) | |
.font(.title.bold()) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment