This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright © 2022 Alex Kovács. All rights reserved. | |
#if os(macOS) | |
import Foundation | |
extension Process { | |
/// Creates a process and launches an exectuable with arguments. | |
/// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright © 2023 Alex Kovács. All rights reserved. | |
import ArgumentParser | |
import Foundation | |
import PathKit | |
import XcodeProj | |
// See below for `MainCommand` skeleton. | |
extension MainCommand { | |
struct XcodeCommand: ParsableCommand { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>FILEHEADER</key> | |
<string> Copyright © 2023 Alex Kovács. All rights reserved.</string> | |
</dict> | |
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright © 2023 Alex Kovács. All rights reserved. | |
#if targetEnvironment(simulator) | |
import OSLog | |
extension Logger { | |
/// Hack! Cannot get Console.app to pick up trace logs from simulator (as of macOS 13.2.1 (22D68)), so just falling | |
/// back to info level logs for debugging. This shadows the existing [Logger.trace()](https://developer.apple.com/documentation/os/logger/3551624-trace) function which |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Documentation comments are copied from the official documentation for iOS. | |
import SwiftUI | |
#if os(macOS) | |
/// Reimplemenation of [EditMode](https://developer.apple.com/documentation/swiftui/editmode) for macOS. | |
public enum EditMode { | |
/// The user can edit the view content. |