This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| @main | |
| struct EmojiPickerDemoApp: App { | |
| @State private var selectedEmoji: String = "🏴☠️" | |
| @State private var showEmojiPopover: Bool = false | |
| var body: some Scene { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import CompactSlider | |
| @main | |
| struct IntelligenceDemoApp: App { | |
| @NSApplicationDelegateAdaptor var appDelegate: AppDelegate | |
| var body: some Scene { | |
| _EmptyScene() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <UIKit/UIKit.h> | |
| typedef NS_ENUM(NSInteger, DBGInterfaceStyleOverride) { | |
| DBGInterfaceStyleOverrideNone = 0, | |
| DBGInterfaceStyleOverrideLight, | |
| DBGInterfaceStyleOverrideDark, | |
| }; | |
| #ifdef __cplusplus | |
| extern "C" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| #Preview { | |
| Form { | |
| Section { | |
| Button("Search on YouTube") { | |
| UIApplication.shared.open(URL(string: "youtube://results?search_query=SwiftUI")!) | |
| } | |
| Button("Search on YouTube V2") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIScreen++.swift | |
| // UIScreen++ | |
| import SwiftUI | |
| extension UIScreen { | |
| var name: String { |
NewerOlder