This file contains 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 Publishers { | |
public struct Anonymous<Output, Failure: Swift.Error>: Publisher { | |
private var closure: (AnySubscriber<Output, Failure>) -> Void | |
public init(closure: @escaping (AnySubscriber<Output, Failure>) -> Void) { | |
self.closure = closure | |
} | |
public func receive<S>(subscriber: S) where S : Subscriber, Anonymous.Failure == S.Failure, Anonymous.Output == S.Input { |
This file contains 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
protocol JSONSerializable { | |
func serializeAsJSON() -> Data? | |
} | |
protocol JSONDeserializable { | |
static func deserialize(_ jsonData: Any) -> AnyObject? | |
static func deserializeArray(_ jsonData: Any) -> [AnyObject]? | |
} | |
// MARK: Default implementations |
This file contains 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 href="itms-services://?action=download-manifest&url=http://169.254.158.178/mainifest.plist"> | |
click this link to install | |
</a> |