Skip to content

Instantly share code, notes, and snippets.

View AbodiDawoud's full-sized avatar
:octocat:

Abodi AbodiDawoud

:octocat:
View GitHub Profile
//
// FluidTagContainerView.swift
// PlayfulMotionLab
import SwiftUI
struct FluidTagContainerView: View {
@State private var tags = ["Design", "SwiftUI", "Interaction"]
@State private var newTagText = ""
import SwiftUI
struct QuietPopupMenu: View {
private let options = ["Focus", "Later", "Done"]
@Namespace private var plateNamespace
@State private var selectedIndex = 0
@State private var hoveredIndex: Int?
@State private var isOpen = false
@State private var isHovered = false
import SwiftUI
struct CommandBloomPicker: View {
private let commands: [BloomCommand] = [
BloomCommand(title: "Draft"),
BloomCommand(title: "Polish"),
BloomCommand(title: "Send")
]
@State private var selectedIndex = 0
@AbodiDawoud
AbodiDawoud / DividerOfSplitView.swift
Created March 16, 2026 04:12 — forked from usagimaru/DividerOfSplitView.swift
Get NSSplitView’s divider view from a subclass (customize divider height and color)
import Cocoa
class SplitView: NSSplitView {
override var dividerThickness: CGFloat {
50
}
override var dividerColor: NSColor {
NSColor.red
import Foundation
import CoreFoundation
@main
struct CleanDesktop {
enum Action: String { case status, on, off, toggle }
private static let wmDomainString = "com.apple.WindowManager"
private static let finderDomainString = "com.apple.finder"
@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