Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[iOS] Fix Transparent Modal issue #11915

Merged
merged 3 commits into from
Oct 30, 2020
Merged

[iOS] Fix Transparent Modal issue #11915

merged 3 commits into from
Oct 30, 2020

Conversation

jsuarezruiz
Copy link
Contributor

@jsuarezruiz jsuarezruiz commented Aug 25, 2020

Description of Change

Fix Transparent Modal issue on iOS. The default value for ModalPresentationStyle is FullScreen. With this value, rhe views belonging to the presenting view controller are removed after the presentation completes.

This PR add changes to check if are using the default ModalPresentationStyle value and a color with alpha, in this case, we use OverFullScreen. The views beneath the presented content are not removed from the view hierarchy when the presentation finishes. So if the presented view controller does not fill the screen with opaque content, the underlying content shows through.

Issues Resolved

API Changes

None

Platforms Affected

  • iOS

Behavioral/Visual Changes

None

Before/After Screenshots

fix11877

Testing Procedure

Launch Core Gallery and navigate to the issue 8551. Press the button below to navigate to a new page. The new page background must have transparency.

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@samhouts samhouts added this to In Review in vCurrent (4.8.0) Aug 25, 2020
@samhouts samhouts added retarget-branch-required PR or associated issues target a milestone. Please target this PR to the matching branch. and removed retarget-branch-required PR or associated issues target a milestone. Please target this PR to the matching branch. labels Aug 25, 2020
@samhouts samhouts changed the base branch from 4.8.0 to 5.0.0 August 26, 2020 21:28
@samhouts samhouts removed this from In Review in vCurrent (4.8.0) Aug 26, 2020
@samhouts samhouts added this to In Review in vNext+1 (5.0.0) Aug 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

[Bug] Transparent Modal doesn't work on iOS
4 participants