1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-01 17:36:48 +00:00

remove not needed

This commit is contained in:
Burrit0z
2020-05-18 20:44:39 -04:00
parent 5e01d17d54
commit 8e6f4ee65f

4
Kai.xm
View File

@ -42,7 +42,7 @@ CGRect originalBattery;
NSLog(@"Kai: Laying out stack view"); NSLog(@"Kai: Laying out stack view");
//%orig; //%orig;
if(!self.hasKai) { /*if(!self.hasKai) {
//original = self.superview.superview.frame; //original = self.superview.superview.frame;
KAIBattery *battery = [[KAIBattery alloc] initWithFrame:CGRectMake(0, 0, UIScreen.mainScreen.bounds.size.width, UIScreen.mainScreen.bounds.size.height)]; KAIBattery *battery = [[KAIBattery alloc] initWithFrame:CGRectMake(0, 0, UIScreen.mainScreen.bounds.size.width, UIScreen.mainScreen.bounds.size.height)];
battery.translatesAutoresizingMaskIntoConstraints = NO; battery.translatesAutoresizingMaskIntoConstraints = NO;
@ -63,7 +63,7 @@ CGRect originalBattery;
//CGRect frame = [self stackView].frame; //CGRect frame = [self stackView].frame;
//[[self stackView] setFrame:CGRectMake(frame.origin.x, frame.origin.y, frame.size.width, frame.size.height + ([KAIBattery sharedInstance].number * 85))]; //[[self stackView] setFrame:CGRectMake(frame.origin.x, frame.origin.y, frame.size.width, frame.size.height + ([KAIBattery sharedInstance].number * 85))];
//[self setStackView:[KAIBattery sharedInstance]]; //[self setStackView:[KAIBattery sharedInstance]];
} }*/
//[[self stackView].heightAnchor constraintEqualToAnchor:[self stackView].heightAnchor constant:([KAIBattery sharedInstance].number * 85)].active = YES; //[[self stackView].heightAnchor constraintEqualToAnchor:[self stackView].heightAnchor constant:([KAIBattery sharedInstance].number * 85)].active = YES;
//self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, self.frame.size.width, original.size.height + ([KAIBattery sharedInstance].number * 85)); //self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, self.frame.size.width, original.size.height + ([KAIBattery sharedInstance].number * 85));