Skip to content

Commit

Permalink
remove: GlassViewController is no longer needed (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Jan 8, 2024
1 parent 750f3cb commit d5ff615
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,6 @@ @interface RCTAppDelegate () <
}
@end

#if TARGET_OS_VISION
@interface GlassViewController : UIViewController

@end

@implementation GlassViewController

- (UIContainerBackgroundStyle)preferredContainerBackgroundStyle {
return UIContainerBackgroundStyleGlass;
}

@end
#endif


static NSDictionary *updateInitialProps(NSDictionary *initialProps, BOOL isFabricEnabled)
{
NSMutableDictionary *mutableProps = [initialProps mutableCopy] ?: [NSMutableDictionary new];
Expand Down Expand Up @@ -210,11 +195,7 @@ - (void)_logWarnIfCreateRootViewWithBridgeIsOverridden

- (UIViewController *)createRootViewController
{
#if TARGET_OS_VISION
return [GlassViewController new];
#else
return [UIViewController new];
#endif
}

- (void)setRootView:(UIView *)rootView toRootViewController:(UIViewController *)rootViewController
Expand Down

0 comments on commit d5ff615

Please sign in to comment.