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

Add a -[FlutterViewController launchView] property #6112

Merged
merged 2 commits into from
Aug 30, 2018
Merged

Add a -[FlutterViewController launchView] property #6112

merged 2 commits into from
Aug 30, 2018

Conversation

jamesderlin
Copy link
Contributor

Add a -[FlutterViewController launchView] property that clients can
use to customize the launch view (issue #17140).

Add a `-[FlutterViewController launchView]` property that clients can
use to customize the launch view (issue #17140).
Specifies the launch view to initialize the view with. If not specified, uses a view
generated from `UILaunchStoryboardName` from the main bundle's `Info.plist` file.
*/
@property(strong, nonatomic) UIView* launchView;
Copy link
Member

Choose a reason for hiding this comment

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

How about splashScreenView? IMO, the name launchView does not make the views purpose immediately clear.

Also, I would amend the docstring to say something like: "Flutters rendering is asynchronous. Due to this, the first frame rendered by the Flutter application may not immediately show up when the UIView is initially placed in the view hierarchy. This view is used a a replacement till the first frame is rendered."

Copy link
Member

Choose a reason for hiding this comment

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

I would also add note about how the user should configure the launch/splashScreen view for multiple sizes. Saying that an autoresizing mask is applied should be sufficient.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All good ideas. I've renamed all of the other launchView references to splashScreenView. (I could have just renamed the external property, but I think in the long run it's better for the naming to be consistent everywhere.)

* Rename `-launchView` (and related functions/variables) to
  `-splashScreenView`.
* Add more documentation.
@jamesderlin jamesderlin merged commit 51d4be7 into flutter:master Aug 30, 2018
@jamesderlin jamesderlin deleted the jamesderlin/launchView branch August 30, 2018 22:13
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 30, 2018
flutter/engine@dc7b5eb...51d4be7

git log dc7b5eb..51d4be7 --no-merges --oneline
51d4be7 Add a `-[FlutterViewController splashScreenView]` property (flutter/engine#6112)
a047fd2 Roll src/third_party/skia 7ed0eae0cd13..8e318fda76df (17 commits) (flutter/engine#6123)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 31, 2018
flutter/engine@dc7b5eb...e7767ae

git log dc7b5eb..e7767ae --no-merges --oneline
e7767ae Add license file patching instructions to README (flutter/engine#6125)
51d4be7 Add a `-[FlutterViewController splashScreenView]` property (flutter/engine#6112)
a047fd2 Roll src/third_party/skia 7ed0eae0cd13..8e318fda76df (17 commits) (flutter/engine#6123)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 31, 2018
flutter/engine@dc7b5eb...21ac961

git log dc7b5eb..21ac961 --no-merges --oneline
21ac961 Roll src/third_party/skia 8e318fda76df..381efe73499e (11 commits) (flutter/engine#6126)
e7767ae Add license file patching instructions to README (flutter/engine#6125)
51d4be7 Add a `-[FlutterViewController splashScreenView]` property (flutter/engine#6112)
a047fd2 Roll src/third_party/skia 7ed0eae0cd13..8e318fda76df (17 commits) (flutter/engine#6123)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 31, 2018
flutter/engine@dc7b5eb...a114659

git log dc7b5eb..a114659 --no-merges --oneline
a114659 Roll src/third_party/skia 381efe73499e..f8592a69428e (1 commits) (flutter/engine#6127)
21ac961 Roll src/third_party/skia 8e318fda76df..381efe73499e (11 commits) (flutter/engine#6126)
e7767ae Add license file patching instructions to README (flutter/engine#6125)
51d4be7 Add a `-[FlutterViewController splashScreenView]` property (flutter/engine#6112)
a047fd2 Roll src/third_party/skia 7ed0eae0cd13..8e318fda76df (17 commits) (flutter/engine#6123)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Aug 31, 2018
flutter/engine@dc7b5eb...a114659

git log dc7b5eb..a114659 --no-merges --oneline
a114659 Roll src/third_party/skia 381efe73499e..f8592a69428e (1 commits) (flutter/engine#6127)
21ac961 Roll src/third_party/skia 8e318fda76df..381efe73499e (11 commits) (flutter/engine#6126)
e7767ae Add license file patching instructions to README (flutter/engine#6125)
51d4be7 Add a `-[FlutterViewController splashScreenView]` property (flutter/engine#6112)
a047fd2 Roll src/third_party/skia 7ed0eae0cd13..8e318fda76df (17 commits) (flutter/engine#6123)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
amirh pushed a commit to amirh/engine that referenced this pull request Sep 21, 2018
)

Add a `-[FlutterViewController splashScreenView]` property

Add a `-[FlutterViewController splashScreenView]` property that
clients can use to customize the launch view (issue flutter#17140).
amirh pushed a commit to amirh/engine that referenced this pull request Sep 21, 2018
)

Add a `-[FlutterViewController splashScreenView]` property

Add a `-[FlutterViewController splashScreenView]` property that
clients can use to customize the launch view (issue flutter#17140).
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.

3 participants