Skip to content

Commit

Permalink
Fix an issue that could make the logo incorrectly positioned on a pot…
Browse files Browse the repository at this point in the history
…ential new iPhone model
  • Loading branch information
LIJI32 committed Aug 17, 2024
1 parent 4610835 commit fb8508e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iOS/GBLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ - (void)drawLogoInVerticalRange:(NSRange)range
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
Expand Down

0 comments on commit fb8508e

Please sign in to comment.