Skip to content

Instantly share code, notes, and snippets.

@lutes1
Last active August 21, 2022 10:32
Show Gist options
  • Save lutes1/9f7521b905752cf89c22d30b0e97730c to your computer and use it in GitHub Desktop.
Save lutes1/9f7521b905752cf89c22d30b0e97730c to your computer and use it in GitHub Desktop.
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