Skip to content

Instantly share code, notes, and snippets.

View AbodiDawoud's full-sized avatar
:octocat:

Abodi AbodiDawoud

:octocat:
View GitHub Profile
@AbodiDawoud
AbodiDawoud / EmojiPickerApp.swift
Created December 30, 2025 18:11
Custom Emoji Picker View
import SwiftUI
@main
struct EmojiPickerDemoApp: App {
@State private var selectedEmoji: String = "🏴‍☠️"
@State private var showEmojiPopover: Bool = false
var body: some Scene {
import SwiftUI
struct NSIntelligenceUIWashAnimationView: NSViewRepresentable {
let startColor: Color
let endColor: Color
var onFinish: () -> Void = {}
func makeAnimationView() -> NSView {
let UIWashAnimationView = NSClassFromString("AppKit._NSIntelligenceUIWashAnimationView") as! NSView.Type
import SwiftUI
struct OrbitalColorView: NSViewRepresentable {
func makeNSView(context: Context) -> some NSView {
let cls = NSClassFromString("AppKit.OrbitalColorView") as! NSView.Type
let view = cls.init(frame: .zero)
view.translatesAutoresizingMaskIntoConstraints = false
return view
}
import SwiftUI
import CompactSlider
@main
struct IntelligenceDemoApp: App {
@NSApplicationDelegateAdaptor var appDelegate: AppDelegate
var body: some Scene {
_EmptyScene()
import Foundation
var Jailbroken = false //when the app open the iphone state is not jailbroken because the script has not yet run
var simulate = false //when the app open the simulator state is not true because the script has not yet run
func IsJailbroken() { //name of the function
#if targetEnvironment(simulator) //just check if the app run on the simulator and change the variable "simulate to true "
simulate = true
#endif
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, DBGInterfaceStyleOverride) {
DBGInterfaceStyleOverrideNone = 0,
DBGInterfaceStyleOverrideLight,
DBGInterfaceStyleOverrideDark,
};
#ifdef __cplusplus
extern "C" {
import SwiftCompilerPlugin
import SwiftSyntax
import SwiftSyntaxBuilder
import SwiftSyntaxMacros
/// Implementation of `syscall` macro, which takes an Int (the syscall number) and zero or more arguments to the syscall, and returns and Int
/// It expands to include manual `dlsym`, and casting to a C function which has 7 filler arguments so that the syscall arguements are on the stack
public struct SyscallMacro: ExpressionMacro {
public static func expansion(
of node: some FreestandingMacroExpansionSyntax,
@AbodiDawoud
AbodiDawoud / UIBlurEffects.txt
Created November 9, 2025 02:40
Private blur effects on iOS
Style 0: <UIBlurEffect: 0x60000004c860> style=UIBlurEffectStyleExtraLight
Style 1: <UIBlurEffect: 0x60000004c870> style=UIBlurEffectStyleLight
Style 2: <UIBlurEffect: 0x60000004c880> style=UIBlurEffectStyleDark
Style 3: <UIBlurEffect: 0x60000000ed40> style=UIBlurEffectStyleExtraDark
Style 4: <UIBlurEffect: 0x60000000ed50> style=UIBlurEffectStyleRegular
Style 5: <UIBlurEffect: 0x60000000ed60> style=UIBlurEffectStyleProminent
Style 6: <UIBlurEffect: 0x60000004c890> style=UIBlurEffectStyleSystemUltraThinMaterial
Style 7: <UIBlurEffect: 0x60000004c8a0> style=UIBlurEffectStyleSystemThinMaterial
Style 8: <UIBlurEffect: 0x60000004c8b0> style=UIBlurEffectStyleSystemMaterial
Style 9: <UIBlurEffect: 0x60000004c8c0> style=UIBlurEffectStyleSystemThickMaterial
@AbodiDawoud
AbodiDawoud / YouTubeURLSchemes.swift
Last active December 28, 2025 17:45
YouTube url schemes for iOS
import SwiftUI
#Preview {
Form {
Section {
Button("Search on YouTube") {
UIApplication.shared.open(URL(string: "youtube://results?search_query=SwiftUI")!)
}
Button("Search on YouTube V2") {
//
// UIScreen++.swift
// UIScreen++
import SwiftUI
extension UIScreen {
var name: String {