Remove WindowBuilderExtIOS::with_root_view_class#2459
Merged
Conversation
eb7208b to
53cc8f6
Compare
Member
|
@ArthurKValladares does brainstorm still use this? |
Contributor
We do still use this internally. I can try to carve out some time early next week to explore the alternative solutions linked here used by wgpu and vulkano. We are also already on our own branch, with changes that don't really makes sense to be merged upstream, so I would not consider our internal usage of this feature to be a blocker for the PR. |
53cc8f6 to
878fa1d
Compare
Member
Author
|
Alternative solution would be to allow overriding the return value from I'm going to merge this now, though if you find that none of the other solutions are workable, feel free to post an issue about it, then we can more easily discuss what to do. |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This was introduced in #609 (CC @mtak-), and while it makes sense, it feels quite unclean and inhibits other improvements (also, it is unsound, but that could be fixed by marking the function as
unsafe).Primary motivation is that it prevents us from doing the iOS equivalent of #2458, since
objc2::declare_class!(intentionally) does not support dynamically declaring classes. If we want this, it should be done in a way that the desired superclass is known at compile-time.I did a search on GitHub to get a feel for who was using it, seems like it's really only
glutin, and that will have to do something else after rust-windowing/glutin#1435 anyhow. Libraries likewgpuandvulkano-winhave already found solutions for this, I strongly suspect thatglutincould do something similar like (but I don't have a setup to verify that atm.):CHANGELOG.mdif knowledge of this change could be valuable to usersWould like your input on this one @francesca64?