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

Improve iOS documentation #3873

Merged
merged 4 commits into from
Aug 19, 2024
Merged

Improve iOS documentation #3873

merged 4 commits into from
Aug 19, 2024

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Aug 15, 2024

Improve the platform-specific documentation with:

  • An updated minimum supported OS version (also on macOS)
  • Instructions for running with Mac Catalyst.
  • Instructions for setting up an Xcode project, and testing in the simulator and on-device (both using Dinghy, and without).
    • Somewhat, still not really happy with it.
  • Remove redundant notes about only being able to call things on the main thread.

Builds upon #3872 to avoid a rebase later on.

@madsmtm madsmtm added S - docs Awareness, docs, examples, etc. DS - ios labels Aug 15, 2024
src/platform/ios.rs Outdated Show resolved Hide resolved
src/window.rs Outdated Show resolved Hide resolved
src/platform/ios.rs Outdated Show resolved Hide resolved
Base automatically changed from madsmtm/remove-window-activation-hacks to master August 18, 2024 21:50
@madsmtm madsmtm marked this pull request as ready for review August 18, 2024 22:30
@madsmtm madsmtm requested a review from daxpedda August 18, 2024 22:30
Copy link
Member

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

What a treasure trove of information!

While most of the backends don't need this much documentation, lets hope we can raise the standard of all the documentation in Winit to this level one day.

EDIT: I was briefly thinking that this is a bit too much for Winit. But considering how much special handling the iOS backend needs, I think a general overview of how to even run it is appropriate.
We might want to consider linking to it from the README in the future when we get the examples working for Android as well.

@madsmtm
Copy link
Member Author

madsmtm commented Aug 18, 2024

I was briefly thinking that this is a bit too much for Winit

Agreed, I'd much prefer to link to an external resource, but I don't think such a resource exists (yet), so in Winit it is for now.

The old instructions are outdated, and suggested a workaround that is
unnecessary.

The user-story in the ecosystem is sadly not very clear-cut, so the
instructions here are still woefully incomplete.
These platform-specific notes on `Window` methods were unnecessary, as
it's already discussed in the top-level `Window` docs.
@madsmtm madsmtm merged commit 6e008b3 into master Aug 19, 2024
58 checks passed
@madsmtm madsmtm deleted the madsmtm/ios-docs branch August 19, 2024 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DS - ios S - docs Awareness, docs, examples, etc.
Development

Successfully merging this pull request may close these issues.

2 participants