Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove _ASDisplayLayer's delegateDidChangeBounds flag #1618

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

nguyenhuy
Copy link
Member

We rely on the delegate setter to be called to set the flag. However, a recent change in iOS 13 (beta) causes the setter to not be called at all and thus we had to put up a workaround (#1609). While the workaround works, the performance benefit that the flag provides doesn't warranty the extra complexity IMO. So I think we should just remove everything.

We rely on the delegate setter to be called to set the flag. However, recent change on iOS 13 causes the setter to not be called at all and thus we had to put up a workaround (TextureGroup#1609). While the workaround works, the perf benefit of that the flag provides doesn't warranty the extra complexity IMO. So I think we should just remove everything.
Copy link
Member

@Adlai-Holler Adlai-Holler left a comment

Choose a reason for hiding this comment

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

I think this is good for now, although I hate to see the msgSend & selector check on every layer every time it changes size, in practice it's not huge. However, we are in talks with Apple about putting back the setDelegate: call – which they really should do! – and if they do, we can put this back to the old code path.

@Adlai-Holler Adlai-Holler merged commit b721a91 into TextureGroup:master Aug 15, 2019
@appleguy
Copy link
Member

@rahul-malik @nguyenhuy could you guys also escalate this through Apple? We are doing so as well. This is a major / unnecessary iOS behavior change that increases the risk that someday an old iOS version will get broken because of the behavior deltas. This is good to have available, but ideally multiple companies are asking for the root system bug to be fixed.

@rahul-malik
Copy link
Contributor

@appleguy - Filed a radar a few weeks ago and will forward to our developer rep. If you have a thread you want us to chime in on let us know

@maicki
Copy link
Contributor

maicki commented Sep 13, 2019

@rahul-malik Did you hear anything back yet from Apple regarding the Radar? Thank you!

@rahul-malik
Copy link
Contributor

@maicki - Nothing yet from Apple on this. Have you heard anything?

@maicki
Copy link
Contributor

maicki commented Sep 14, 2019

No we didn't, but from our investigation it seems it was changed intentionally and as soon as you link after iOS 12 the delegate call will not be called anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants