Check out the repo instead. The Wisdom of Quinn Now with 100% more archived PDFs.
Informative DevForum posts from everyone's favorite DTS member.
(Arranged newest to oldest)
| import Foundation | |
| import Testing | |
| func waitForExpectation( | |
| timeout: Duration, | |
| description: String, | |
| fileID: String = #fileID, | |
| filePath: String = #filePath, | |
| line: Int = #line, | |
| column: Int = #column, |
| // | |
| // DebugDevice.swift | |
| // | |
| // Copyright 2022 • Sidetrack Tech Limited | |
| // | |
| import Foundation | |
| // This must be called on the main-thread. | |
| var isDebugProfileInstalled: Bool { |
| // | |
| // CustomGeometryReader.swift | |
| // | |
| // | |
| // Created by Arutyun Enfendzhyan on 10.01.22. | |
| // | |
| import SwiftUI | |
| struct CustomGeometryReader: View { |
Check out the repo instead. The Wisdom of Quinn Now with 100% more archived PDFs.
Informative DevForum posts from everyone's favorite DTS member.
(Arranged newest to oldest)
| // | |
| // KeyCommand.swift | |
| // Adds Keyboard Shortcuts to SwiftUI on iOS 13 | |
| // See https://steipete.com/posts/fixing-keyboardshortcut-in-swiftui/ | |
| // License: MIT | |
| // | |
| // Usage: (wrap view in `KeyboardEnabledHostingController`) | |
| // Button(action: { | |
| // print("Button Tapped!!") | |
| // }) { |
| #if os(iOS) | |
| import UIKit | |
| public typealias PlatformImage = UIImage | |
| public typealias PlatformColor = UIColor | |
| #else | |
| import AppKit | |
| public typealias PlatformImage = NSImage | |
| public typealias PlatformColor = NSColor | |
| #endif |
| set -e | |
| # carthage.sh : smarter carthage updating and caching by Joe Mattiello | |
| # | |
| # Inspired from http://shashikantjagtap.net/cache-carthage-speed-ios-continuous-integration/ | |
| # | |
| # The purpose of this script is to reduce the amount of checkouts Carthage runs. | |
| # I use this script in an XCode 'run script' build phase as the first phase before compiling | |
| # If you have mutliple targets, projects, frameworks etc, you can include this script in each and it will selec | |
| # the correct Carthage folder for each target. |
| import Darwin | |
| @dynamicMemberLookup | |
| struct Environment { | |
| subscript(dynamicMember name: String) -> String? { | |
| get { | |
| guard let value = getenv(name) else { return nil } | |
| return String(validatingUTF8: value) | |
| } |