1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-04 14:46:47 +00:00

bro why am i trash

This commit is contained in:
Burrit0z
2020-05-24 18:43:00 -04:00
parent ef4eddb8b7
commit d8b6c9ed88
3 changed files with 39 additions and 38 deletions

View File

@ -142,6 +142,28 @@ NSMutableArray *deviceInstances = [[NSMutableArray alloc] init];
[self.glyphView setImage:[self.device glyph]];
if(!self.height) {
self.height.active = NO;
self.height = [self.heightAnchor constraintEqualToConstant:(bannerHeight + spacing)];
self.height.active = YES;
} //else {
//int height = (bannerHeight + spacing);
//self.height.constant = height;
//}
if(!self.width) {
self.width.active = NO;
self.width = [self.widthAnchor constraintEqualToConstant:(self.frame.size.width)];
self.width.active = YES;
} //else {
//int width = self.frame.size.width;
//self.width.constant = width;
//}
}
+(instancetype)cellForDeviceIfExists:(BCBatteryDevice *)device frameToCreateNew:(CGRect)arg2 {