Skip to content

Instantly share code, notes, and snippets.

@ichitaso
Created May 7, 2022 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichitaso/935100fd53a26f18a9060f7195a1be0e to your computer and use it in GitHub Desktop.
Save ichitaso/935100fd53a26f18a9060f7195a1be0e to your computer and use it in GitHub Desktop.
Change the color of the predictive part of the keyboard
DEBUG = 0
FINALPACKAGE = 1
THEOS_DEVICE_IP = 192.168.0.15
TARGET = iphone:14.5:13.0
ARCHS = arm64 arm64e
export PREFIX = $(THEOS)/toolchain/Xcode11.xctoolchain/usr/bin/
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = test
$(TWEAK_NAME)_FILES = Tweak.x
$(TWEAK_NAME)_CFLAGS = -fobjc-arc
include $(THEOS_MAKE_PATH)/tweak.mk
{ Filter = { Bundles = ( "com.apple.UIKit" ); }; }
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface UIPredictionViewController : UIViewController
@end
@interface UICandidateViewController : UIViewController
@end
%hook UIPredictionViewController
- (void)loadView {
%orig;
[self.view setBackgroundColor:[UIColor blackColor]];
}
%end
// AppStore Apps
%hook UICandidateViewController
- (void)loadView {
%orig;
[self.view setBackgroundColor:[UIColor blackColor]];
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment