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
// -*- SHARED -*- | |
SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator | |
COMBINE_HIDPI_IMAGES = YES | |
INSTALL_PATH = $(LOCAL_LIBRARY_DIR)/Frameworks | |
SKIP_INSTALL = YES | |
COPY_PHASE_STRIP = NO | |
IPHONEOS_DEPLOYMENT_TARGET = 14.0 | |
MACOSX_DEPLOYMENT_TARGET = 10.15 | |
TVOS_DEPLOYMENT_TARGET = 14.0 |
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
extension Dictionary where Key==String, Value==String { | |
struct DictCodingKey: CodingKey { | |
var stringValue: String | |
init(stringValue: String) { | |
self.stringValue = stringValue | |
} | |
var intValue: Int? { return nil } | |
init?(intValue: Int) { return nil } | |
} |
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
import Combine | |
import Foundation | |
public extension Publisher { | |
func reduceLatest<B: Publisher, Output>( | |
_ b: B, | |
_ transform: @escaping (Self.Output?, B.Output?) -> Output | |
) -> Publishers.ReduceLatest<Self, B, Output> { | |
Publishers.ReduceLatest(self, b, transform) | |
} |