Created
August 21, 2022 12:50
-
-
Save lutes1/0e61afc1a8de3557ce7a6e74a61ef1e2 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: "Rotation", | |
leftButtonTitle: "Done", | |
leftButtonAction: { | |
presentationMode.wrappedValue.dismiss() | |
} | |
), | |
leftControls: { EmptyView() }, | |
rightControls: { | |
Text("\(Int(canvasViewModel.tilt))°") | |
.font(.title.bold()) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment