diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`where XXXXX is the size of the RAM disk in terms of memory blocks.
Notes:
| // | |
| // EnvironmentBindable.swift | |
| // | |
| // Created by James Sedlacek on 3/6/24. | |
| // | |
| import SwiftUI | |
| /// A property wrapper that provides a convenient way to bind observable objects from the environment | |
| /// to a SwiftUI view. This wrapper simplifies the process of accessing and binding environment objects |
| tell application "Xcode" | |
| activate | |
| set targetProject to active workspace document | |
| repeat 60 times | |
| if loaded of targetProject is true then | |
| exit repeat | |
| end if | |
| delay 0.5 | |
| end repeat |
| // | |
| // KeyboardToolbar.swift | |
| // | |
| // Created by James Sedlacek on 9/20/23. | |
| // | |
| import SwiftUI | |
| import Combine | |
| @Observable |
| // | |
| // FullScreenPresent.swift | |
| // | |
| // Created by Heath Hwang on 5/16/20. | |
| // | |
| import SwiftUI | |
| extension View { | |
| /// This is used for presenting any SwiftUI view in UIKit way. As it uses some tricky way to make the objective, could possibly happen some issues at every upgrade of iOS version. |
| let styles: [UIFont.TextStyle] = [ | |
| // iOS 17 | |
| .extraLargeTitle, .extraLargeTitle2, | |
| // iOS 11 | |
| .largeTitle, | |
| // iOS 9 | |
| .title1, .title2, .title3, .callout, | |
| // iOS 7 | |
| .headline, .subheadline, .body, .footnote, .caption1, .caption2, | |
| ] |
| defaults write com.apple.dt.Xcode ApplePersistenceIgnoreState YES |
| // | |
| // Simplify.swift | |
| // | |
| // Simplification of a 3D-polyline. | |
| // A port of https://github.com/hgoebl/simplify-java for Swift | |
| // | |
| // | |
| // The MIT License (MIT) | |
| // | |
| // Created by Lachlan Hurst on 10/02/2015. |