Xamarin.forms: [Bug] Xamarin.Forms 4.5 breaks custom frame renderer shadow functionality on iOS

Created on 28 Feb 2020  路  9Comments  路  Source: xamarin/Xamarin.Forms

Description

When making a custom frame renderer for iOS and changing the shadow properties, they do not get applied on Xamarin 4.5. Moreover, the custom renderer does not extend, but rather overwrite the Xamarin Forms implementation.

Steps to Reproduce

  1. Make a new Xamarin Forms project
  2. Create a custom frame renderer
  3. Modify the shadow of the custom frame renderer

Expected Behavior

The custom frame renderer extends the properties of the current frame, modifying only the shadow.

Actual Behavior

The custom frame renderer does not affect the shadow, sets the default shadow.

Basic Information

  • Version with issue: 4.5.0.356
  • Last known good version: 4.4.0.991757
  • IDE: Visual Studio for Mac
  • Nuget Packages: Xamarin.Forms, Xamarin.Essentials
  • Affected Devices: iOS

Screenshots

How it should look:
Screenshot 2020-02-28 at 16 24 45

How it looks in Xamarin.Forms 4.5
Screenshot 2020-02-28 at 16 37 52

Reproduction Link

https://github.com/doriangh/Xamarin-Forms-4.5-issue

frame 5 in-progress iOS 馃崕 bug

Most helpful comment

it's still present in XF 4.6.0.726

All 9 comments

Duplicate of #9265

We're also experiencing this problem. Reverting to Forms version 4.4.0.991265 fixed the issue.

closed by #10023

@samhouts I still can't get this to work with the exact setup in the latest XF 4.5 sr4 (4.5.0.617).

@samhouts This issue is still happening in 4.5.0.617 and pre versions too. Can you confirm which version has the fix and also reopen the ticket.

it's still present in XF 4.6.0.726

Any fixes for this issue?

Any fixes for this issue?

The only one I've been able to find is by following this: https://xamarinhowto.com/customising-ios-frame-shadows-in-xamarin-forms-4-5/
It still has some issues with a list of custom frames (if there are more than 6 custom frames in a list, it tends to alternate the custom shadow).

Any fixes for this issue?

The only one I've been able to find is by following this: https://xamarinhowto.com/customising-ios-frame-shadows-in-xamarin-forms-4-5/
It still has some issues with a list of custom frames (if there are more than 6 custom frames in a list, it tends to alternate the custom shadow).

Yeah that solution is working fine

Was this page helpful?
0 / 5 - 0 ratings