-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XF Upgrade 4.4 #644
XF Upgrade 4.4 #644
Conversation
@TimLariviere |
Yes, please. |
Seems like there's a new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job so far!
I've added a few remarks on what's missing or what can prove challenging to correctly support.
Fabulous.XamarinForms/src/Fabulous.XamarinForms/Xamarin.Forms.Core.json
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/src/Fabulous.XamarinForms/Xamarin.Forms.Core.json
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/src/Fabulous.XamarinForms/Xamarin.Forms.Core.json
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/src/Fabulous.XamarinForms/Xamarin.Forms.Core.json
Outdated
Show resolved
Hide resolved
Fabulous.XamarinForms/src/Fabulous.XamarinForms/Xamarin.Forms.Core.json
Outdated
Show resolved
Hide resolved
@TimLariviere
Just saw that it is |
Yes, we need to keep it. |
@TimLariviere https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/indicatorview Normally the method What do you think about exposing this function as a event and accept a |
Could you explain a bit more why you see it as an event? |
@TimLariviere One thing that I caught was that using a I think I need to rewrite the After all this is working with the ViewRef idea. |
@TimLariviere |
@TimLariviere |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late reply. I needed some time off.
I'm slowly getting back on this PR. Here's a few things I found.
| ValueSome prevValue, ValueSome currValue when prevValue = currValue -> () | ||
| ValueNone, ValueNone -> () | ||
| _, ValueSome currValue -> Shell.SetNavBarHasShadow(target, currValue) | ||
| ValueSome _, ValueNone -> Shell.SetNavBarHasShadow(target, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value of NavBarHasShadow
is dependent of the platform. If it's Android, it is true
, false
otherwise.
See https://github.com/xamarin/Xamarin.Forms/blob/1ae8fb1cd53f8cc0584249f824e457ce2a091354/Xamarin.Forms.Core/Shell/Shell.cs#L37
Fabulous.XamarinForms/src/Fabulous.XamarinForms.Core/ViewUpdaters.fs
Outdated
Show resolved
Hide resolved
match currValue.TryValue with | ||
| Some v -> IndicatorView.SetItemsSourceBy(target, v) | ||
| None -> () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should set the ItemsSource to null
in the case the ref is invalid, instead of doing nothing and keeping a previous state no longer wanted?
{ | ||
"source": null, | ||
"name": "ShellNavBarHasShadow", | ||
"defaultValue": "true", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above. Default value is dependent of the platform.
@SergejDK There doesn't seem to be a better way. Relying directly on |
Fabulous.XamarinForms/src/Fabulous.XamarinForms.Core/ViewHelpers.fs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Awesome work thanks! I just compiled an app with it now and my SwipeItems are showing as expected. |
fix #641
TODO: