Created
January 6, 2015 10:24
-
-
Save mauricerkelly/4a1e8e63ab4f6549279a to your computer and use it in GitHub Desktop.
Draggable Views
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 | |
protocol Draggable { | |
func draggableViewMethod() | |
} | |
class DraggableView: UIView, Draggable { | |
func draggableViewMethod() { | |
} | |
} | |
var dragView: DraggableView = DraggableView() | |
dragView.draggableViewMethod() | |
dragView.didMoveToWindow() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment