From 50df8692aa7707a87e35227fe0f2f520b6eba651 Mon Sep 17 00:00:00 2001 From: Chris Hogan Date: Tue, 16 Jun 2020 15:13:46 -0700 Subject: [PATCH] Update with red view --- Playground/Playground/AppDelegate.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Playground/Playground/AppDelegate.m b/Playground/Playground/AppDelegate.m index 968ffe5..fe13ee0 100644 --- a/Playground/Playground/AppDelegate.m +++ b/Playground/Playground/AppDelegate.m @@ -17,6 +17,10 @@ @implementation AppDelegate - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application + NSView *redView = [[NSView alloc] initWithFrame:NSMakeRect(20, 20, 100, 200)]; + [redView setWantsLayer:YES]; + [[redView layer] setBackgroundColor:NSColor.redColor.CGColor]; + [[_window contentView] addSubview:redView]; }