Skip to content

Instantly share code, notes, and snippets.

View chrislconover's full-sized avatar

Chris Conover chrislconover

View GitHub Profile
@chrislconover
chrislconover / hamburger.swift
Created January 23, 2018 18:15 — forked from MrAlek/hamburger.swift
Example of how to use presentation, animation & interaction controllers w/ custom segues to create a slide-in modal menu which partially covers presenting view.
// https://gist.github.com/MrAlek/3d1520ca2c5d981489e2
import UIKit
enum Direction {
case left, right, up, down
var pointVector: CGPoint {
switch self {
case .left: return CGPoint(x: -1, y: 0)