Skip to content

royhsu/RHAnimatedTitleView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RHAnimatedTitleView

Animate two titles when scrolling.

See in action

RHAnimatedTitleView

##How to use it?

Create a custom title view by using designated initializer provided by RHAnimatedTitleView.

let titleView = RHAnimatedTitleView(oldTitle: "AAAA", newTitle: "BBBB")

add it to title view of navigationItem of view controller

navigationItem.titleView = titleView

You can set color of title you want

(Default is black.)

titleView.titleColor = UIColor.redColor()

Disable fade in/out transition is easy

(Default is true.)

titleView.transition = false

Change content offset of custom title view to trigger move action

(Note: the maximum distance that custom title view can move is same as the height of custom title view itself)

titleView.contentOffset = CGPointMake(0.0, y)

About

Animate two titles when scrolling.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages