79320352

Date: 2024-12-31 16:02:10
Score: 3
Natty:
Report link

Is there a "variable name alias" like there is a "typealias"? I'd like to be able to access my model by just the member name (it's a simple toy-view learning sample). So something like

var m : contentViewModel {@Published var content : String}

varalias content = m.content

Button {content = "Sample"}

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: Jim Witte