Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 18a1921

Browse files
committed
add buggy rotation support
1 parent 952ec4d commit 18a1921

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

HUDMainApplication.mm

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,22 +1027,10 @@ - (void)updateViewConstraints
10271027

10281028
if (_orientation == UIInterfaceOrientationLandscapeLeft || _orientation == UIInterfaceOrientationLandscapeRight)
10291029
{
1030-
if (_orientation == UIInterfaceOrientationLandscapeLeft)
1031-
{
1032-
[_constraints addObjectsFromArray:@[
1033-
[_contentView.leadingAnchor constraintEqualToAnchor:self.view.leadingAnchor constant:20],
1034-
// [_contentView.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor constant:-CGRectGetMinY(layoutGuide.layoutFrame)],
1035-
[_contentView.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor constant:-20],
1036-
]];
1037-
}
1038-
else
1039-
{
1040-
[_constraints addObjectsFromArray:@[
1041-
// [_contentView.leadingAnchor constraintEqualToAnchor:self.view.leadingAnchor constant:CGRectGetMinY(layoutGuide.layoutFrame)],
1042-
[_contentView.leadingAnchor constraintEqualToAnchor:self.view.leadingAnchor constant:20],
1043-
[_contentView.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor constant:-20],
1044-
]];
1045-
}
1030+
[_constraints addObjectsFromArray:@[
1031+
[_contentView.leadingAnchor constraintEqualToAnchor:self.view.leadingAnchor constant:(layoutGuide.layoutFrame.origin.y > 1) ? 20 : 4],
1032+
[_contentView.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor constant:(layoutGuide.layoutFrame.origin.y > 1) ? -20 : -4],
1033+
]];
10461034

10471035
[_constraints addObject:[_contentView.topAnchor constraintEqualToAnchor:self.view.topAnchor constant:10]];
10481036
}

layout/Applications/XXTAssistiveTouch.app/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>CFBundleDisplayName</key>
1212
<string>TrollSpeed</string>
1313
<key>CFBundleVersion</key>
14-
<string>1.7.4</string>
14+
<string>1.8</string>
1515
<key>CFBundleExecutable</key>
1616
<string>XXTAssistiveTouch</string>
1717
<key>NSPrincipalClass</key>
@@ -39,6 +39,6 @@
3939
<key>NSHumanReadableCopyright</key>
4040
<string>Copyright © 2009 Apple Inc. All Rights Reserved.</string>
4141
<key>CFBundleShortVersionString</key>
42-
<string>1.7.4</string>
42+
<string>1.8</string>
4343
</dict>
4444
</plist>

layout/DEBIAN/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ch.xxtou.hud
22
Name: HUD App
3-
Version: 1.7.4
3+
Version: 1.8
44
Section: Tweaks
55
Depends: firmware (>= 13.0), mobilesubstrate (>= 0.9.7000), com.rpetrich.rocketbootstrap (>= 1.0.9)
66
Architecture: iphoneos-arm

0 commit comments

Comments
 (0)