├── LSQuickActions.plist
├── Makefile
├── README.md
├── Tweak.x
└── control
/LSQuickActions.plist:
--------------------------------------------------------------------------------
1 | {
2 | Filter = {
3 | Classes = (
4 | "CSQuickActionsViewController"
5 | );
6 | };
7 | }
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | ifeq ($(ROOTLESS),1)
2 | THEOS_PACKAGE_SCHEME = rootless
3 | else ifeq ($(ROOTHIDE),1)
4 | THEOS_PACKAGE_SCHEME = roothide
5 | endif
6 |
7 | DEBUG = 0
8 | FINALPACKAGE = 1
9 | ARCHS = arm64 arm64e
10 | TARGET := iphone:clang:latest:12.0
11 | INSTALL_TARGET_PROCESSES = SpringBoard
12 |
13 | include $(THEOS)/makefiles/common.mk
14 |
15 | TWEAK_NAME = LSQuickActions
16 | $(TWEAK_NAME)_FILES = Tweak.x
17 | $(TWEAK_NAME)_CFLAGS = -fobjc-arc
18 |
19 | include $(THEOS_MAKE_PATH)/tweak.mk
20 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # LSQuickActions
2 |
Enables support for quick action buttons on the lock screen for non-notched devices.
3 |
4 | Tested on iOS 14.8 (6s), no options to configure
5 |
6 |
7 | |  |
8 | | --- |
9 |
--------------------------------------------------------------------------------
/Tweak.x:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface CSQuickActionsView : UIView
4 | @property (nonatomic, strong) UIControl *flashlightButton;
5 | @property (nonatomic, strong) UIControl *cameraButton;
6 | @end
7 |
8 | %hook CSQuickActionsViewController
9 | + (BOOL)deviceSupportsButtons { return YES; }
10 |
11 | - (id)quickActionsViewIfLoaded {
12 | CSQuickActionsView *quickActionsView = %orig;
13 |
14 | if (quickActionsView) {
15 | CGRect flashlightFrame = quickActionsView.flashlightButton.frame;
16 | CGRect cameraFrame = quickActionsView.cameraButton.frame;
17 |
18 | flashlightFrame.origin.x = 20;
19 | flashlightFrame.origin.y = quickActionsView.frame.size.height - flashlightFrame.size.height - 20;
20 | quickActionsView.flashlightButton.frame = flashlightFrame;
21 |
22 | cameraFrame.origin.x = quickActionsView.frame.size.width - cameraFrame.size.width - 20;
23 | cameraFrame.origin.y = quickActionsView.frame.size.height - cameraFrame.size.height - 20;
24 | quickActionsView.cameraButton.frame = cameraFrame;
25 | }
26 |
27 | return quickActionsView;
28 | }
29 | %end
--------------------------------------------------------------------------------
/control:
--------------------------------------------------------------------------------
1 | Package: com.dvntm.lsquickactions
2 | Name: LSQuickActions
3 | Version: 0.0.1
4 | Architecture: iphoneos-arm
5 | Description: Enables quick action buttons on the lock screen
6 | Maintainer: dvntm
7 | Author: dvntm
8 | Section: Tweaks
9 | Depends: mobilesubstrate (>= 0.9.5000), firmware (>= 12.0)
--------------------------------------------------------------------------------