WWDC 2006 2007 2008 2009 2010 2011 2012 2013 2014
// | |
// ContentView.Swift | |
// KeyboardAttachedView | |
// | |
// Created by Gavin Nelson on 8/19/24. | |
// | |
import SwiftUI | |
import UIKit |
import Foundation | |
struct ShellCommand { | |
@discardableResult | |
static func stream(_ command: String) -> Int32 { | |
let outputPipe = Pipe() | |
let task = self.createProcess([command], outputPipe) | |
outputPipe.fileHandleForReading.readabilityHandler = { fileHandle in self.streamOutput(outputPipe, fileHandle) } | |
do { |
// This playground shows you a few different ways to get device info via IOKit. | |
// If you want to explore IOKit and look for interesting data I would download | |
// the Additional Developer Tools from Apple and use the IORegistryExplorer app. | |
// It makes it super easy to poke around in the IOKit planes. | |
import IOKit | |
import Foundation | |
// For convient access we can make a computed getter for the PlatformExpert. | |
// Traditionally this has been where you go to find all sorts of data about the |
import Cocoa | |
import UniformTypeIdentifiers | |
extension UTTagClass { | |
static let deviceModelCode = UTTagClass(rawValue: "com.apple.device-model-code") | |
} | |
extension UTType { | |
static let macBook = UTType("com.apple.mac.laptop") | |
static let macBookWithNotch = UTType("com.apple.mac.notched-laptop") |
extension Locale { | |
/// Returns an SF Symbol currency image that match's the device's current locale, for instance dollar in North America, Indian rupee in India, etc. | |
func currencySFSymbol(filled: Bool, withConfiguration configuration: UIImage.Configuration? = nil) -> UIImage { | |
// Default currency symbol will be the Animal Crossing Leaf coin to remain impartial to any specific country | |
let defaultSymbol = UIImage(systemName: "leaf.circle\(filled ? ".fill" : "")")! | |
guard let currencySymbolName = currencySymbolNameForSFSymbols() else { return defaultSymbol } | |
let systemName = "\(currencySymbolName).circle\(filled ? ".fill" : "")" | |
return UIImage(systemName: systemName, withConfiguration: configuration) ?? defaultSymbol |
@resultBuilder | |
public struct ArrayBuilder<Element> { | |
public static func buildPartialBlock(first: Element) -> [Element] { [first] } | |
public static func buildPartialBlock(first: [Element]) -> [Element] { first } | |
public static func buildPartialBlock(accumulated: [Element], next: Element) -> [Element] { accumulated + [next] } | |
public static func buildPartialBlock(accumulated: [Element], next: [Element]) -> [Element] { accumulated + next } | |
// Empty Case | |
public static func buildBlock() -> [Element] { [] } | |
// If/Else |
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
At WWDC 2019 Apple released some videos directly online, with no corresponding live session. This is a list of those videos with links to the video pages.
Some sessions were presented during WWDC but then split into multiple videos when posted online. This list includes the online versions, since they don't appear in the WWDC schedule. For example WWDC included session 711, "Introducing Combine and Advances in Foundation". This was split into two online videos-- 722, "Introducing Combine", and 723, "Advances in Foundation". Both 722 and 723 are included here.
- 244 Visual Design and Accessibility https://developer.apple.com/videos/play/wwdc2019/244
- 245 Introducing the Indoor Maps Program https://developer.apple.com/videos/play/wwdc2019/245
- 246 Window Management in Your Multitasking App https://developer.apple.com/videos/play/wwdc2019/246
- 247 What’s New in ClassKit https://developer.apple.com/videos/play/wwdc2019/247
- 248 Creating an Accessible Reading Experience https://developer.apple.com/
Using Unicode Collation Algorithm (as implemented by ICU Project).
See discussion at forum.glyphsapp.com.
҈ ҉ ـ ߺ ࠤ ࠨ ः ং ঃ ਃ ઃ ଂ ଃ ఁ ం ః ಂ ಃ ം ഃ ං ඃ ༾ ༿ ཿ း ះ ៈ ᠊ ᪾ ⃝ ⃞ ⃟ ⃠ ⃢ ⃣ ⃤ 〮 〯 ꙰ ꙱ ꙲ ﱞ ﱟ ﱠ ﱡ ﱢ ﱣ ﳲ ﳳ ﳴ ﹰ ﹱ ﹲ ﹳ ﹴ ﹶ ﹷ ﹸ ﹹ ﹺ ﹻ ﹼ ﹽ ﹾ ﹿ ゙ ゚ ‾ ﹉ ﹊ ﹋ ﹌ _ ︳ ︴ ﹍ ﹎ ﹏ _ ‗ - ﹣ - ֊ ᠆ ᠇ ‐ ‑ ‒ – ︲ — ︱ ﹘ ― ⸺ ⸻ ⁓ ⸗ ⹀ 〜 〰 ゠ ・ ・ , ︐ ﹐ , ⸴ ⸲ ⹁ ՝ ، ؍ ٫ ٬ ߸ ᠂ ᠈ 、 ︑ ﹑ 、 ﹅ ﹆ ; ; ︔ ﹔ ; ؛ ⁏ ⸵ : ︓ ﹕ : ⩴ ։ ؞ ܃ ܄ ܅ ܆ ܇ ܈ ࠰ ࠱ ࠲ ࠳ ࠴ ࠵ ࠶ ࠷ ࠸ ࠹ ࠺ ࠻ ࠼ ࠽ ࠾ ፡ ፣ ፤ ፥ ፦ ᠄ ᠅ ༔ ៖ ! ︕ ﹗ ! ‼ ⁉ ¡ ՜ ߹ ? ︖ ﹖ ? ⁈ ⁇ ¿ ⸮ ՞ ؟ ܉ ፧ ⳺ ⳻ ‽ ⸘ . ․ ﹒ . ‥ ︰ … ︙ ᠁ ۔ ܁ ܂ ። ᠃ ᠉ ⳹ ⳾ ⸰ ⸼ 。 ︒ 。 · · ⸱ ⸳ । ॥ ᰻ ᰼ ꤯ ၊ ။ ។ ៕ ܀ ߷ ჻ ፠ ፨ ⁕ ⁖ ⁘ ⁙ ⁚ ⁛ ⁜ ⁝ ⁞ ⸪ ⸫ ⸬ ⸭ ⸽ ⳼ ⳿ ⸙ ' ' ‘ ’ ‚ ‛ ‹ › " “ ” „ ‟ ⹂ 〝 〞 〟 « » ( ⁽ ₍ ︵ ﹙ ( ⑴ ⑽ ⑾ ⑿ ⒀ ⒁ ⒂ ⒃ ⒄ ⒅ ⒆ ⑵ ⒇ ⑶ ⑷ ⑸ ⑹ ⑺ ⑻ ⑼ ⒜ ⒝ ⒞ ⒟ ⒠ ⒡ ⒢ ⒣ ⒤ ⒥ ⒦ ⒧ ⒨ ⒩ ⒪ ⒫ ⒬ ⒭ ⒮ ⒯ ⒰ ⒱ ⒲ ⒳ ⒴ ⒵ ㈀ ㈎ ㈁ ㈏ ㈂