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
| // | |
| // UserInfoCell.swift | |
| // | |
| // Created by Mathias Claassen on 30/8/16. | |
| // Copyright © 2016 Xmartlabs. All rights reserved. | |
| // | |
| import Foundation | |
| import Eureka |
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 Foundation | |
| import PlaygroundSupport | |
| /// A thread-safe array. | |
| public class SynchronizedArray<Element> { | |
| private let queue = DispatchQueue(label: "io.zamzam.ZamzamKit.SynchronizedArray", attributes: .concurrent) | |
| private var array = [Element]() | |
| public init() { } | |
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
| //: Playground - noun: a place where people can play | |
| import Foundation | |
| final class Disposable { | |
| private let dispose: () -> () | |
| init(_ dispose: @escaping () -> ()) { | |
| self.dispose = dispose | |
| } | |
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
| func fetchResultsFromApi() { | |
| struct MyGitHub: Codable { | |
| let name: String? | |
| let location: String? | |
| let followers: Int? | |
| let avatarUrl: URL? | |
| let repos: Int? | |
| private enum CodingKeys: String, CodingKey { |
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 PlaygroundSupport | |
| import Foundation | |
| struct Resource<A> { | |
| var request: URLRequest | |
| var parse: (Data) throws -> A | |
| } | |
| protocol Loadable { | |
| static var request: URLRequest { get } |
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
| #if DEBUG | |
| import SwiftUI | |
| private let screenshotDirectory = "/Users/inket/Desktop/" | |
| struct PreviewScreenshot: ViewModifier { | |
| struct LocatorView: UIViewRepresentable { | |
| let tag: Int | |
| func makeUIView(context: Context) -> UIView { |
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
| // | |
| // ExtensionURLRequest.swift | |
| // | |
| // Created by Abhishek Maurya on 16/07/20. | |
| // Copyright © 2020. All rights reserved. | |
| // | |
| import Foundation | |
| extension URLRequest { |
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 (c) 2020 Eugene Berdnikov | |
| # | |
| # 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 |
OlderNewer