From c0d7152d3e7ae421b4d24d5b179558e0f4054fb6 Mon Sep 17 00:00:00 2001 From: Burrit0z <57574731+Burrit0z@users.noreply.github.com> Date: Sat, 28 Dec 2019 09:13:37 -0500 Subject: [PATCH] hm --- Tweak.x | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Tweak.x b/Tweak.x index 1246c9f..5424274 100755 --- a/Tweak.x +++ b/Tweak.x @@ -1,7 +1,8 @@ -//Set up stuff -//#import -//#import -//#import +//I looked at Kritanta's "Home Plus" tweak for help with ios13 stuff. I DID NOT +//copy anything, at least knowingly because these tweaks are simillar, please +//understand the code may be simillar becuase we are doing similar things. +//I am liscensing this under MIT, anyone can use anything they need to from here +#include #import @interface SBDockView @@ -14,6 +15,13 @@ @interface SBIconListView @end +@interface SBRootIconListView : UIView ++ (NSInteger)iconColumnsForInterfaceOrientation; +@end + +@interface SBDockIconListView : SBRootIconListView +@end + //Set up variables for use with Cephei static BOOL transparent; static BOOL hidden; @@ -27,6 +35,7 @@ HBPreferences *preferences; %hook SBDockView //this deals with everything adjusting opacity/transparency +//ios 12 and 13 -(void)setBackgroundAlpha:(double)arg1 { if (transparent == NO && hidden == NO) { //if not transparent and not hidden %orig(customOpacity); @@ -51,6 +60,7 @@ HBPreferences *preferences; %hook SBDockIconListView +//ios 12 +(NSInteger)maxIcons { if (hidden) { return (0); @@ -59,15 +69,7 @@ HBPreferences *preferences; } } --(BOOL)allowsAddingIconCount:(unsigned long long)arg1 { - if (hidden) { - return (0); - %orig(NO); - } else { - %orig(YES); - return (setIconNumber); - } -} +//ios13 %end