To configure Fork to use IntelliJ IDEA for diffing and merging, follow the steps below.
Ensure you have the command-line launcher idea installed.
- Path:
/usr/local/bin/idea
| import CoreImage | |
| import CoreVideo | |
| import ImageIO | |
| import Metal | |
| /// Processes ARKits' ARFrame->capturedImage CVPixelBuffer according to the documentation into an sRGB image. | |
| /// | |
| /// ARKit captures pixel buffers in a full-range planar YCbCr format (also known as YUV) format according to the ITU R. 601-4 standard. | |
| /// (You can verify this by checking the kCVImageBufferYCbCrMatrixKey pixel buffer attachment.) | |
| /// Unlike some uses of that standard, ARKit captures full-range color space values, not video-range values. |
| import class Foundation.Bundle | |
| private class BundleFinder {} | |
| extension Foundation.Bundle { | |
| /// Returns the resource bundle associated with the current Swift module. | |
| static var module: Bundle = { | |
| let bundleName = "<PACKAGENAME_MODULENAME>" | |
| let candidates = [ |
| protocol State { | |
| var manager: AppUpdateManager { get } | |
| init(manager: AppUpdateManager) | |
| } | |
| protocol UpdateProcessControlling { | |
| func startUpdate() | |
| func postponeUpdate() | |
| } |
| // | |
| // StateMachine.swift | |
| // | |
| // | |
| // Created by Christian Treffs on 24.06.20. | |
| // | |
| public typealias FSM<State, StateInstance> = StateMachine<State, StateInstance> where State: Equatable | |
| public final class StateMachine<State, StateInstance> where State: Equatable { | |
| /// Current state of this finite-state machine. |
Apple feedback submitted: FB9905889
Up to Xcode version 13 xcappdata container are not behaving as expected:
xcappdata container set in xctestplan configurations or via schemes ...
| import Foundation | |
| import CoreFoundation | |
| public final class CoreNotificationCenter { | |
| public static let darwin = CoreNotificationCenter(CFNotificationCenterGetDarwinNotifyCenter()) | |
| public static let local = CoreNotificationCenter(CFNotificationCenterGetLocalCenter()) | |
| #if os(macOS) | |
| public static let distributed = CoreNotificationCenter(CFNotificationCenterGetDistributedCenter()) |
| // <https://github.com/tensorflow/swift-apis/blob/main/Sources/TensorFlow/Core/KeyPathIterable.swift> | |
| // <https://github.com/apple/swift/blob/main/stdlib/public/core/ReflectionMirror.swift> | |
| // <https://github.com/tensorflow/swift/blob/main/docs/DynamicPropertyIteration.md> | |
| // <https://forums.swift.org/t/getting-keypaths-to-members-automatically-using-mirror/21207> | |
| // <https://github.com/Azoy/Echo> | |
| public protocol KeyPathReflectable { | |
| func reflect(allKeyPaths keyPaths: inout [PartialKeyPath<Self>]) | |
| func reflect(allKeyPaths keyPaths: inout [String: PartialKeyPath<Self>]) |
swiftc main.swift -emit-module-path main.swiftmodule -emit-executable -enable-private-imports -Xfrontend -enable-implicit-dynamic./main -> prints From original bar()swiftc -emit-library inject.swift -o inject.dylib -I . -Xlinker -undefined -Xlinker suppress -Xlinker -flat_namespace -Xfrontend -disable-access-controlDYLD_INSERT_LIBRARIES=inject.dylib ./main -> prints From replacement bar()-Xfrontend -enable-implicit-dynamic removes you from having to add dynamic to everything you want to be replacable| // First, let's test out the basic design. This is basically just an | |
| // HList. | |
| // This recurses to the right because that makes subscripting simpler, | |
| // at the cost of making appending impossible to generalize. | |
| public protocol TupleProtocol: RandomAccessCollection | |
| where Index == Int, IndexDistance == Int, Element == Any | |
| { | |
| associatedtype First | |
| associatedtype Rest //: TupleProtocol |