Fix an issue that could make the logo incorrectly positioned on a potential new iPhone model

This commit is contained in:
Lior Halphon
2024-08-17 19:35:32 +03:00
parent 461083523a
commit fb8508ea20

View File

@@ -142,6 +142,9 @@ static bool HasHomeBar(void)
CGRect rect = CGRectMake(0,
range.location - range.length / 3,
self.size.width, range.length * 2);
if (self.size.width > self.size.height) {
rect.origin.x += _cutout / 2;
}
NSMutableParagraphStyle *style = [NSParagraphStyle defaultParagraphStyle].mutableCopy;
style.alignment = NSTextAlignmentCenter;
[@"SAMEBOY" drawInRect:rect