Skip to content

Instantly share code, notes, and snippets.

@0cyn
Created November 12, 2021 03:35
Show Gist options
  • Select an option

  • Save 0cyn/cdc62e91911d44126be35707bb5d3791 to your computer and use it in GitHub Desktop.

Select an option

Save 0cyn/cdc62e91911d44126be35707bb5d3791 to your computer and use it in GitHub Desktop.
Request from a discord user
// kat was also here
static bool isHomePlusEditing = NO;
// kat was here
#include <Foundation.h>
#include "HomePlusIsEditing.h"
%hook HPUIManager
- (void)showEditorView
{
// call %orig first so the snappiness of my animations are preserved.
%orig();
isHomePlusEditing = YES;
}
- (void)hideEditorView
{
%orig();
isHomePlusEditing = NO;
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment