This file contains hidden or 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
| // | |
| // Library.swift | |
| // LabelLayout | |
| // | |
| // Created by Chris Eidhof on 09.09.18. | |
| // Copyright © 2018 objc.io. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or 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
| // Depends on https://github.com/sindresorhus/Defaults | |
| @available(macOS 10.15, *) | |
| private struct ShowForAppRuns: ViewModifier { | |
| private static var runCounts = [String: Int]() | |
| private let count: Int | |
| private let startShowingFromAppRun: Int | |
| private let runCount: Int | |
| init(count: Int, id: String, startShowingFromAppRun: Int = 1) { |
This file contains hidden or 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
| // | |
| // SparkleCommands.swift | |
| // Past for iChat | |
| // | |
| // Created by Helge Heß on 08.04.21. | |
| // | |
| import SwiftUI | |
| #if SPARKLE && canImport(Sparkle) |
This file contains hidden or 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 2021 Kyle Hughes | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | |
| // documentation files (the "Software"), to deal in the Software without restriction, including without limitation the | |
| // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
| // permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| // | |
| // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the | |
| // Software. | |
| // |
This file contains hidden or 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
| // | |
| // ColorSchemeApp.swift | |
| // ColorScheme | |
| // | |
| // Created by Craig Hockenberry on 9/11/24. | |
| // | |
| import SwiftUI | |
| @main |
This file contains hidden or 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
| // | |
| // OCXML.swift | |
| // Created by Marco Arment on 9/23/24. | |
| // | |
| // Released into the public domain. Do whatever you'd like with this. | |
| // No guarantees that it'll do anything, or do it correctly. Good luck! | |
| // | |
| import Foundation |
This file contains hidden or 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
| /// A task that is cancelled if goes out of scope, i.e. the last reference on it has been discarded. | |
| public final class ScopedTask<Success: Sendable, Failure: Error>: Sendable { | |
| /// The underlying task | |
| let wrapped: Task<Success, Failure> | |
| /// Wraps a task into a scoped task. | |
| init(wrapping task: Task<Success, Failure>) { | |
| wrapped = task | |
| } |
OlderNewer