Skip to content

Commit

Permalink
make HeroTransitionDelegate public
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzhao committed Mar 11, 2018
1 parent 23dfae4 commit 24f76bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Transition/HeroTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ public class Hero: NSObject {
public static var shared = HeroTransition()
}

protocol HeroTransitionDelegate: class {
public protocol HeroTransitionDelegate: class {
func heroTransition(_ hero: HeroTransition, didUpdate state: HeroTransitionState)
func heroTransition(_ hero: HeroTransition, didUpdate progress: Double)
}

open class HeroTransition: NSObject {
weak var delegate: HeroTransitionDelegate?
public weak var delegate: HeroTransitionDelegate?

public var defaultAnimation: HeroDefaultAnimationType = .auto
public var containerColor: UIColor = .black
Expand Down

0 comments on commit 24f76bb

Please sign in to comment.