Add focus state binding example for child view#29
Add focus state binding example for child view#29joshuakcockrell wants to merge 1 commit intoskiptools:mainfrom
Conversation
|
Thank you for your pull request and welcome to the Skip community. We require contributors to sign our contributor license agreement (CLA), and we don't seem to have the user(s) @joshuakcockrell on file. In order for us to review and merge your code, for each noted user please add your GitHub username to Skip's .clabot file |
|
I tried to run There's not really anything that would impact tests here though so idk what's happening. |
The Showcase app doesn't have a test module. Test cases are typically part of framework projects and app projects often remove them, so you don't need to worry about them. |
| #if !SKIP | ||
| @FocusState.Binding var focusedField: FocusField? | ||
| #else | ||
| @Binding var focusedField: FocusField? | ||
| #endif |
There was a problem hiding this comment.
@aabewhite Do you think we could just typealias FocusState.Binding to Binding in SkipUI? I'm unclear on why FocusState.Binding exists at all.
This adds an example to the
FocusStatePlaygroundthat shows how@FocusState.Bindingcan be replaced with a normal@Bindingso that@FocusStatevariables can be passed to child views.Skip Pull Request Checklist:
swift test