Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[iOS API breaking change] Make splashScreenView of FlutterViewController nullable #34743

Merged
merged 1 commit into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,10 @@ FLUTTER_DARWIN_EXPORT
*
* The view used should be appropriate for multiple sizes; an autoresizing mask to
* have a flexible width and height will be applied automatically.
*
* Set to nil to remove the splash screen view.
*/
@property(strong, nonatomic) UIView* splashScreenView;
@property(strong, nonatomic, nullable) UIView* splashScreenView;

/**
* Attempts to set the `splashScreenView` property from the `UILaunchStoryboardName` from the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1149,4 +1149,11 @@ - (void)testFakeEventTimeStamp {
XCTAssertTrue(interval_micros / 1000 < tolerance_millis,
@"PointerData.time_stamp should be equal to NSProcessInfo.systemUptime");
}

- (void)testSplashScreenViewCanSetNil {
FlutterViewController* flutterViewController =
[[FlutterViewController alloc] initWithProject:nil nibName:nil bundle:nil];
[flutterViewController setSplashScreenView:nil];
}

@end