|
Hello In the WeSplit project, Paul demonstrated how to use segmented with Pickers. I understand this is smart and easy https://www.hackingwithswift.com/books/ios-swiftui/adding-a-segmented-control-for-tip-percentages
However , an array of tip percentages have limited users' options when it comes to tipping. If I still want to use TextField for tips, is there a Thanks Boat |
|
Check out the |
|
|
|
It seems this way it could work:
Except the Preview Section is telling me : 1, 'ContentView' initializer is inaccessible due to 'private' protection level 2, Missing argument for parameter 'tipPercent' in call |
|
As the error message indicates, you need to provide an initial value for |
|
Thank you Can I say that, by providing tipPercent an initial value, I effectively initialized it ? Boat.. |
SAVE 50% All our books and bundles are half price for Black Friday, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.