Open thisismyself opened 3 years ago
Hot Restart doesn't work if you are using the Material libraries . I forget the specifics but I've assigned to that team to see if they have additional work towards making that work
@mauroa ?
I've also been having this issue since I've started using Hot Restart. It still doesn't work in Xamarin.Forms 5.0.0.1874.
Having same issue. Can't use material with iOS hot restart. App crashes. :(
I am having the same issue vS 2019 and VS 2022
Xamarin.Forms 5.0.0.224 and Xamarin.Forms.Visual.Material 5.0.0.224
@PureWeen @thisismyself Did you find a solution to this problem?
[iOS] AppCrash with Hot Restart and MaterialFrameRenderer when showing Frame
Steps to Reproduce
Expected Behavior
App starts on the iPhone and uses Material Design.
Actual Behavior
App crashes when Frame should be shown for the first time.
Debug Output:
Obviously, class
MaterialFrameRenderer
does not implement the NSObject of iOS.Basic Information
Environment
Visual Studio: Visual Studio 2019 (16.8.2)
Reproduction Link
Just take the offical sample on Visuals. Compile and deploy using Xamarin Hot Restart. Start the App and Navigate to Cards. App crashes. When you set
Visual="Default"
on all Frames in CardPage.xaml, Rendering is done in Default Visual and does not crash. https://docs.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/userinterface-visualdemos/Workaround
Do not use Material Renderer on Frame element (removed
Visual="Material"
fromFrame
or change toDefault
).