Skip to content

fix: removing usage of the map for cardview reference - #436

Merged
arekkubaczkowski merged 2 commits into
masterfrom
fix/card-field-dealloc
Jul 21, 2021
Merged

arekkubaczkowski merged 2 commits into
masterfrom
fix/card-field-dealloc

Conversation

@souhe

@souhe souhe commented Jul 19, 2021 •

Copy link
Copy Markdown
Collaborator

An attempt to fix #391

In order to fix the deallocation issue and make the code a little bit more readable I moved the CardFieldView reference from manager to StripeSdk. Thanks to that we don't have to cache anything in ViewManager and accessing card reference is easier from StripeSdk.

This solution works with assumption that there can only be one CardField rendered at once

TODO:

  • implement POC solution|
  • refactor implmented solution
  • test that this change doesn't break anything

closes #391

@souhe
souhe requested a review from arekkubaczkowski July 19, 2021 17:52
@souhe souhe changed the title WIP: fix: removing usage of the map for cardview reference fix: removing usage of the map for cardview reference Jul 20, 2021
@souhe
souhe requested a review from thorsten-stripe July 20, 2021 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CardField crash the app with EXC_BAD_ACCESS on iOS 13.*

2 participants