Please end my confusion. Thanks! 🙂
Suppose, for purposes of illustration, I want to end up with this:
Button(showSheet ? "Hide message" : "Show message") {
self.showSheet.toggle()
}
How would I - step-by-step - use Xcode (Version 11.4.1) code completion toachieve this?
This is what is confusing me:
- I start typing "Button"; choose the suggested `Button` symbol and hit Enter to be reminded of the sequence of arguments for this View.
I hit Enter and I am given "Button"
I am not offered any argument hints - I type "("
In the expectation of being shown what arguments follow.
I see
Didn't I want to see the placeholders that relate to this initializer:Button(action: () -> Void, label: () -> PrimitiveButtonStyleConfiguration.Label
init(S, action: () -> Void)
I suppose my confusion stems from the fact that a common form of initialization is not shown in code completion.
What am I getting wrong?