Skip to content

Instantly share code, notes, and snippets.

import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
SidebarView()
SidebarView()
}
}
}
@ddaddy
ddaddy / README.md
Last active March 13, 2023 08:20
How to delete multiple integrations in Xcode?

Problem

Xcode does not allow to edit multiple integrations at once, so we should select and delete them one by one. Such a terrible experience.

Solution

Fortunately, an Xcode Server can be accessed via an API. For example, let’s imagine that your Xcode server is running locally and is logged into macOS as vadim. Run the following command in Terminal:

curl -u vadim -ki https://localhost:20343/api/integrations
import Foundation
public protocol Journey { }
class CommsJourney: Journey { }
typealias Completion = (Result<[Journey]?, Error>) -> Void
typealias CommsCompletion = (Result<[CommsJourney]?, Error>) -> Void
class Comms {
func refreshTimes(completion: @escaping CommsCompletion) {