Skip to content

Instantly share code, notes, and snippets.

@larssondaniel
Created April 2, 2017 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larssondaniel/208a3e22388c3b48f418ac3a26ea9e3b to your computer and use it in GitHub Desktop.
Save larssondaniel/208a3e22388c3b48f418ac3a26ea9e3b to your computer and use it in GitHub Desktop.
typedef NS_ENUM(NSInteger, PlayerState) {
PlayerStateThumbnail,
PlayerStateFullscreen,
};
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIView *playerView;
@property (nonatomic) UIViewPropertyAnimator *playerViewAnimator;
@property (nonatomic) PlayerState playerState;
@property (nonatomic) CGRect originalPlayerViewFrame;
@property (nonatomic) UIPanGestureRecognizer *panGestureRecognizer;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment