Step 2 - Writing the code

Create your first tweak

Now in your terminal run tweak or point directly to the nic.pl file, you should see a lot of options but we will only focus on 1 of these

You will see a lot of different options and choose the one that says "iphone/tweak" and press enter.(or if you want to use swift choose "iphone/tweak_swift")

Now you will be asked to enter a name for your tweak, enter whatever you want and press enter.

Now you will be asked to enter a package name for your tweak, enter something structured like com.yourname.tweakname and press enter.

Now you will be asked to enter a author name for your tweak, enter whatever you want and press enter.

Now you will be asked for some other stuff but you can just press enter for all of these.(at least if you want to strictly follow the tutorial)

Start editing your tweak

Now you should have a folder with the name you entered earlier in your current directory.

Now open the folder in your prefered IDE.

You should see a lot of files but we will only focus on 2 of these. One called tweak.x and one called Makefile.

Now open the tweak.x file and delete everything in it.

Now you can write your code in their or you can just paste for example This code in it:

#import <UIKit/UIKit.h>
@interface SBDockView : UIView {
UIView* _backgroundView;
}
@property (nonatomic,retain) UIView * backgroundView;
@end
%hook SBDockView
- (void) didMoveToWindow {
%orig;
UIView *bgView = MSHookIvar<UIView *>(self, "_backgroundView");
bgView.hidden = YES;
}
%end

Now open the Makefile and delete everything in it.

Now you can write your makefile stuff in their or you can just paste this

TARGET := iphone:clang:latest:15.0
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = nodock
nodock_FILES = Tweak.xm
nodock_CFLAGS = -fobjc-arc
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "sbreload"

Go back to step 1 Go to Step 3