Skip to content

Instantly share code, notes, and snippets.

View iosdevben's full-sized avatar

Ben Thomas iosdevben

View GitHub Profile
@TonyTang2001
TonyTang2001 / SwiftUISlider.swift
Last active March 1, 2024 18:44
Customizable UISlider Wrapper for SwiftUI
/// Customizable UISlider Wrapper for SwiftUI
struct SwiftUISlider: UIViewRepresentable {
/// UXSlider subclasses UISlider, touch
class UXSlider: UISlider {
// Function to be triggered by touchEvent
var dragBegan: () -> Void = {}
var dragMoved: () -> Void = {}
var dragEnded: () -> Void = {}
@rmcdongit
rmcdongit / macOS_SytemPrefs.md
Last active June 29, 2025 04:26
Apple System Preferences URL Schemes

macOS 10.15 System Preference Panes

Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.

To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:

tell application "System Preferences"
	set CurrentPane to the id of the current pane
	set the clipboard to CurrentPane