Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
123456789101112131415161718import Foundation
enum SupportSubmission: Equatable { case email(URL) case issues(URL, copiedText: String)
@MainActor func perform(open: (URL) -> Bool, copy: (String) -> Bool) throws { switch self { case .email(let url): guard open(url) else { throw SupportSubmissionError.emailOpenFailed } case .issues(let url, let text): guard copy(text) else { throw SupportSubmissionError.copyFailed } guard open(url) else { throw SupportSubmissionError.issuesOpenFailed } } }}