Last active
August 21, 2022 10:32
-
-
Save lutes1/9f7521b905752cf89c22d30b0e97730c 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
class HeaderViewModel { | |
init( | |
title: String, | |
leftButtonTitle: String? = nil, | |
leftButtonAction: (() -> ())? = nil, | |
sizeControlCallback: Binding<Int>? = nil, | |
sizeIndicator: String? = nil, | |
colorIndicator: UIColor? = nil, | |
tiltIndicator: String? = nil) { | |
// Assignments removed here for brevity | |
} | |
var title: String | |
var leftButtonTitle: String? = nil | |
var leftButtonAction: (() -> ())? = nil | |
var sizeControlCallback: Binding<Int>? = nil | |
var sizeIndicator: String? = nil | |
var colorIndicator: UIColor? = nil | |
var tiltIndicator: String? = nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment