Use _NS_4445425547
or NS🐞
for enables debuggging panel. When enabled it, a ladybug 🐞 menu appears in the app menu bar.
“4445425547” means DEBUG in Unicode table.
0x44=D
0x45=E
0x42=B
0x55=U
0x47=G
@MainActor | |
enum UIKitDefaults { | |
static let defaults = UserDefaults(suiteName: "com.apple.UIKit")! | |
// Enables UIKit gesture logging, which will log the set of gesture recognizers responding to a touch and their states. | |
static var gestureLoggingEnabled: Bool { | |
get { defaults.bool(forKey: "LogGesture") } | |
set { defaults.set(newValue, forKey: "LogGesture") } | |
} | |
package db | |
import ( | |
"context" | |
"database/sql" | |
"fmt" | |
"log/slog" | |
"net/url" | |
"os" | |
"runtime" |
import InterposeKit | |
import SwiftUI | |
/// A workaround for an issue in SwiftUI related to delayed highlighting of list rows upon user | |
/// interaction, rendering it inconsistent with UIKit. | |
/// | |
/// This fix implements the solution proposed by Léo Natan and utilizes `InterposeKit` by Peter | |
/// Steinberger to modify the behavior of `UICollectionViewCell` instances used internally | |
/// by SwiftUI. | |
/// |
# Change these variables as necessary. | |
main_package_path = ./cmd/example | |
binary_name = example | |
# ==================================================================================== # | |
# HELPERS | |
# ==================================================================================== # | |
## help: print this help message | |
.PHONY: help |
// Credits to Louistiti from Drizzle Discord: https://discord.com/channels/1043890932593987624/1130802621750448160/1143083373535973406 | |
import { sql } from "drizzle-orm"; | |
const clearDb = async (): Promise<void> => { | |
const query = sql<string>`SELECT table_name | |
FROM information_schema.tables | |
WHERE table_schema = 'public' | |
AND table_type = 'BASE TABLE'; | |
`; |
//----------------------------------------------------------------------------------------------- | |
// SquirrelNoise5.hpp | |
// | |
#pragma once | |
///////////////////////////////////////////////////////////////////////////////////////////////// | |
// SquirrelNoise5 - Squirrel's Raw Noise utilities (version 5) | |
// | |
// This code is made available under the Creative Commons attribution 3.0 license (CC-BY-3.0 US): |
struct User: Equatable { | |
var firstName: String | |
var lastName: String | |
} | |
@main | |
struct MyApp: App { | |
@State var value = User(firstName: "", lastName: "") | |
@State var showEdit = false | |
import SwiftUI | |
extension Calendar { | |
func generateDates( | |
inside interval: DateInterval, | |
matching components: DateComponents | |
) -> [Date] { | |
var dates: [Date] = [] | |
dates.append(interval.start) |
#import <UIKit/UIKit.h> | |
typedef NS_ENUM(NSInteger, DBGInterfaceStyleOverride) { | |
DBGInterfaceStyleOverrideNone = 0, | |
DBGInterfaceStyleOverrideLight, | |
DBGInterfaceStyleOverrideDark, | |
}; | |
#ifdef __cplusplus | |
extern "C" { |