Skip to content

[Customer Center] Fixes an extra blank screen after popping FeedbackSurveyView on iOS 18.#4144

Merged
JayShortway merged 4 commits into
integration/customer_support_workflowfrom
sdk-3519-extra-blank-screen-after-back-button-on-cancel-subscription
Aug 6, 2024
Merged

[Customer Center] Fixes an extra blank screen after popping FeedbackSurveyView on iOS 18.#4144
JayShortway merged 4 commits into
integration/customer_support_workflowfrom
sdk-3519-extra-blank-screen-after-back-button-on-cancel-subscription

Conversation

@JayShortway

Copy link
Copy Markdown
Member

Cause

The issue in the ticket is caused by the use of .constant and .onDisappear, which probably resulted in a timing issue where the feedbackSurveyData is not set to nil quickly enough after pressing the Back button.

Fix

The fix in this PR is to bind directly to the .feedbackSurveyData property. I've added an .isNotNil Binding extension for this, as it seemed useful to reuse in other parts of RevenueCatUI. Let me know if the Binding+Extensions.swift file should be placed somewhere else instead.


Closes SDK-3519

@JayShortway JayShortway requested a review from a team August 5, 2024 10:51
@JayShortway JayShortway self-assigned this Aug 5, 2024

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to get an iOS dev eye on this, but LGTM!

@JayShortway JayShortway merged commit 7e9b355 into integration/customer_support_workflow Aug 6, 2024
@JayShortway JayShortway deleted the sdk-3519-extra-blank-screen-after-back-button-on-cancel-subscription branch August 6, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants