-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Make it possible to customise the window on iOS #1247
Conversation
|
This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request. |
rmarinho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some issues with formatting other than that i don't see a problem
| var platformRenderer = (PlatformRenderer)_window.RootViewController; | ||
|
|
||
| if (platformRenderer != null) | ||
| if(Window.RootViewController is PlatformRenderer platformRenderer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is C#7, yeah? Love it, but we're stuck in VS2015 land for now. :(
Also, if you make other changes to the file, please also add a space between the if and parens. Not a big deal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm ok, i'll make some changes. There is nothing about this in the Wiki on how to contribute.
|
@samhouts Implemented requested changes. |
samhouts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Fixes #1247 Must set SourceRect in iOS 13
Description of Change
This changes the way the window is used in iOS in a backwards compatible way.
Bugs Fixed
It was not possible to swap out the current root for a native Xamarin ViewController, and then navigate back to a Forms one.
Also when changing the MainPage on a custom window it would crash because it would not implement PlatformRenderer. The new check prevents this.
API Changes
List all API changes here (or just put None), example:
Added:
Behavioral Changes
This will not change any behaviour but just enable to work easier with Native views, especially in MvvmCross.
PR Checklist