Skip to content

Instantly share code, notes, and snippets.

@cerupcat
cerupcat / Tappable UIView
Last active January 29, 2022 16:09
Turn any UIView into a tappable button that animates and calls a selector
import Foundation
import UIKit
@propertyWrapper
class Tappable<T: UIView>: NSObject, UIGestureRecognizerDelegate {
// MARK: - Public Properties
public var wrappedValue: T? {
willSet {
removeGesture()
Verifying my Blockstack ID is secured with the address 1LL9D1cdLaYfErgog2rTBLWqcnhpsKRbvd https://explorer.blockstack.org/address/1LL9D1cdLaYfErgog2rTBLWqcnhpsKRbvd
@cerupcat
cerupcat / .swift
Created November 5, 2017 20:20
Apollo HTTPNetworkClient with Mock
//
// AuthHTTPNetworkTransport.swift
//
// Created by Seth Sandler on 9/13/17.
// Copyright © 2017 Workpop. All rights reserved.
//
import Foundation
import Apollo
//
// UIAlertViewCrashFix.h
//
// Created by Josh Hudnall on 4/28/15.
//
//
#import <Foundation/Foundation.h>
@interface UIAlertController (CrashFix)
@cerupcat
cerupcat / gist:45a3c62cf230d94e8ce5
Created October 18, 2014 03:33
Paste This in "Show off your company"
◀ prev ▲ next ▶ Full Time Shell Gas Station / C-Store Book Keeper (Los Angeles, CA)
@cerupcat
cerupcat / .travis.yml
Last active August 29, 2015 14:06 — forked from JagCesar/.travis.yml
language: objective-c
before_script:
- chmod +x scripts/travis/add-key.sh
- chmod +x scripts/travis/remove-key.sh
- chmod +x scripts/travis/testflight.sh
- ./scripts/travis/add-key.sh
script: xctool -workspace [Workspace name].xcworkspace -scheme '[Scheme to use]' -configuration [Build configuration name] -sdk iphoneos7.1 CONFIGURATION_BUILD_DIR='~/build/' build
after_success:
- ./scripts/travis/testflight.sh
after_script: