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
name: Concierge bot | |
on: | |
issue_comment: | |
types: [created] | |
issues: | |
types: [opened] | |
jobs: | |
triaging: |
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 UIKit | |
class ViewController: UIViewController { | |
@IBOutlet private weak var cardView: UIView! | |
private var animator: UIDynamicAnimator! | |
private var snapping: UISnapBehavior! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
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
// | |
// CombinedCell.swift | |
// Project-01 | |
// | |
// Created by Geoff Foster on 2017-12-08. | |
// Copyright © 2017 Raul Riera. All rights reserved. | |
// | |
import UIKit | |
import FunctionalTableData |
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
typealias LabelCell = HostCell<UILabel, LabelState, LayoutMarginsTableItemLayout> | |
struct LabelState: Equatable { | |
let text: String | |
let font: UIFont | |
let isMultiline: Bool | |
init(text: String, font: UIFont = UIFont.systemFont(ofSize: 17), isMultiline: Bool = true) { | |
self.text = text | |
self.font = font |
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 | |
final class ConcealingTitleView: UIView { | |
private let label = UILabel() | |
private var contentOffset: CGFloat = 0 { | |
didSet { | |
label.frame.origin.y = titleVerticalPositionAdjusted(by: contentOffset) | |
} | |
} | |
var text: String = "" { |
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
public protocol Cachable { | |
var fileName: String { get } | |
func transform() -> Data | |
} | |
final public class Cacher { | |
let destination: URL | |
private let queue = OperationQueue() | |
public enum CacheDestination { |
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 UIKit | |
// This class allows the "presentedController" to receive touches | |
// https://pspdfkit.com/blog/2015/presentation-controllers/ | |
class PSPDFTouchForwardingView: UIView { | |
var passthroughViews: [UIView] = [] | |
override func hitTest(point: CGPoint, withEvent event: UIEvent?) -> UIView? { | |
guard let hitView = super.hitTest(point, withEvent: event) else { 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
public struct UserRequest: DribbbleRequestType { | |
public typealias Response = User | |
public var path: String { | |
return "/user" | |
} | |
public func responseFromObject(object: AnyObject, URLResponse: NSHTTPURLResponse) -> Response? { | |
guard let dictionary = object as? [String: AnyObject] else { | |
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
public typealias URLSessionOperationCompletion = (data: NSData?, response: NSHTTPURLResponse?, error: NSError?) -> Void | |
public class URLSessionOperation: Operation { | |
private var task: NSURLSessionDataTask? | |
private var completionHandler: URLSessionOperationCompletion? | |
/** | |
Returns an instance of `URLSessionOperation` | |
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
// | |
// UIViewExtensions.swift | |
// | |
// Created by Raúl Riera on 23/09/2015. | |
// Copyright (c) 2015 Raul Riera. All rights reserved. | |
// | |
import UIKit | |
extension UIView { |
NewerOlder