From b8ad3ef2c6058aa0388034bf556b2df9264a5400 Mon Sep 17 00:00:00 2001 From: Matthew Schouest Date: Thu, 10 May 2018 09:56:15 -0700 Subject: [PATCH] Remove usage of sharedApplication to allow Hakawai to be used in App Extensions --- Hakawai/Mentions/HKWMentionsCreationStateMachine.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Hakawai/Mentions/HKWMentionsCreationStateMachine.m b/Hakawai/Mentions/HKWMentionsCreationStateMachine.m index d961fa6..7c5ca80 100644 --- a/Hakawai/Mentions/HKWMentionsCreationStateMachine.m +++ b/Hakawai/Mentions/HKWMentionsCreationStateMachine.m @@ -520,10 +520,7 @@ - (void)hideChooserView { // Handle the case where the chooser frame is completely custom if ([HKWMentionsCreationStateMachine modeRequiresCustomFrame:mode]) { // Placeholder frame; used until the constraints are properly applied - chooserFrame = CGRectMake(0, - 0, - [UIApplication sharedApplication].keyWindow.bounds.size.width, - 100); + chooserFrame = CGRectZero; } NSAssert(!CGRectIsNull(chooserFrame), @"Logic error: got a null rect for the chooser view's frame");