• Stars
    star
    162
  • Rank 232,284 (Top 5 %)
  • Language
    Swift
  • Created almost 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Aids with prototyping UIGestureRecognizers in Xcode Playgrounds

SwiftyGestureRecognition

A drop-in library for extending UIGestureRecognizers to aid in prototyping with them in Xcode Playgrounds.

Definitely not prime for shipping I wrote it just for demo purposes, but it's fun to mess with. Use it to write less boilerplate code when trying out UIGestureRecognizers in Xcode Playgrounds.

Was built for my presentation at try! Swift 2016, so be sure to check out my talk when it's posted! :D

Example includes a playground that shows logging a UIPanGestureRecognizer.

How do I use it?

Create an Xcode Workspace with a playground. Drag + drop SwiftyGestureRecognition.xcodeproj into the workspace and import it into your playground: import SwiftyGestureRecognition.

Using UIGestureRecognizers is now pretty simple!

let gestureRecognizer = UIPanGestureRecognizer(view: aView)
  .didBegin { (gestureRecognizer) in
    print("began")
  }.didChange { (gestureRecognizer) in
    print("changed")
  }.didEnd { (gestureRecognizer) in
    print("ended")
}

How do I compile?

Xcode pretty much.

License?

Pretty much the BSD license, just don't repackage it and call it your own please!

Also if you do make some changes, feel free to make a pull request and help make things more awesome!

Contact Info?

Feel free to follow me on twitter: @b3ll!

More Repositories

1

Motion

Animation engine for gesturally-driven user interfaces, animations, and interactions on iOS, macOS, and tvOS.
Swift
1,426
star
2

Ignition

Runs the CarPlay UI directly on top of SpringBoard on an iOS device, no need for a car!
Logos
308
star
3

Decomposed

CATransform3D manipulation made easy.
Swift
262
star
4

Pseudo3DTouch

Mimicking Apple's 3D touch on hardware that doesn't have it.
Objective-C
118
star
5

NyanCat

Puts Nyan Cat in the iOS 8 Notification Center :D
Objective-C
92
star
6

MessageBox-olde

Chat Heads everywhere in iOS!
Objective-C
73
star
7

SetNeedsDisplay

A Swift Property Wrapper to invalidate your view's layout or display based on property changes.
Swift
70
star
8

Adjustable

Swift property wrapper to automatically add sliders to adjust values and aid in refining user interfaces, animations, and interactions without the need to recompile.
Swift
63
star
9

DarkCode

Always makes Xcode use Dark Mode on macOS Mojave
Objective-C
57
star
10

Xcode-Theos

Attempts to use Theos/Logos with Xcode
Objective-C
53
star
11

tryswift2016

All the material from my talk at try! Swift 2016 in Tokyo Japan.
Swift
50
star
12

MessageBox

Break Facebook's Chat Heads out of the iOS Sandbox!
Logos
50
star
13

Tunetable

Stream your LPs over AirPlay
Swift
40
star
14

fan.cy

Collection of useful helpers I've found / written that help make working with cycript a bit more awesome.
Shell
39
star
15

Spectral

Make the iOS lockscreen proper with blurred album artwork!
Logos
33
star
16

ClickWheelKeyboard

Brings back the classic iPod click wheel as a keyboard for iOS 8!
Objective-C
24
star
17

try-swift-2019

Presentation and demo for my talk "Shaping Sounds in Swift" at try! Swift 2019 in Tokyo
Swift
23
star
18

DarkDock

Make Yosemite's Dock always Dark
Objective-C
21
star
19

JailbreakCon2013

Presentation stuff from JailbreakCon 2013!
21
star
20

Springshot

Add a little WebOS to iOS!
JavaScript
18
star
21

StarshipConfig

My starship prompt config.
18
star
22

PostOffice

Post Office
Objective-C
15
star
23

NSSpain2022

Presentation and demo for my talk "Crafting Responsive and Playful Interfaces" at NSSpain 2022 in Logroño
Swift
14
star
24

F1TV

A tvOS Client for F1TV
Swift
12
star
25

DynamicDoge

Flappy Bird clone written in UIKit and UIDynamics!
Objective-C
10
star
26

dynamiciospreviews

UX Demo for the iOS 7 App Switcher
Objective-C
9
star
27

NSString-Doge

Very Category
Objective-C
8
star
28

Twerk

Pile of hack that lets you create/share GIF images that I wrote for the iOSDevCamp 2013 Hackathon
Objective-C
7
star
29

EmojiLand

Making the Objective-C Runtime <3 Emoji
Objective-C
6
star
30

GottaCatchMALL

Add Missingno as an obtainable pokémon in the Google Maps' Pokémon Challenge!
Logos
5
star
31

SimpleXcodeIcon

Xcode plug-in to remove the build number on the Xcode dock icon.
Objective-C
5
star
32

SheepShell

oh-my-zsh theme with emoji!
3
star
33

warningsaserrorsissue

Swift
2
star
34

b3ll.github.io

b3ll.github.io
HTML
2
star
35

nou

no u
1
star