Code Monkey home page Code Monkey logo

unreadslidemenu's Introduction

License Xcode 8.2+ iOS 8.0+ Swift 3.0+ UnRead slide Menu

UnReadSlideMenu is a imitate for UnRead App slideMenu. It provides a different way to show slide menu, with pan gestrue and spring expand animation

UnRead

First let us watching this gorgeous animation in UnRead app

MyUnRead

This is my implemetation about this elegant slide menu step by step. No CALayer Animation, all the code is written using lovey and simple UIView Animation

About the Code

  • Every unit view in this slideMenu is SpringExpandView,which is a UIView subclass can expand and collapse
  • It is a custom trasation when your finger drag from the edge of right to left, it will active the tiny slide menu
  • all the code is in this demo

How to

How can u use that springExpandView in your proj? Show u the code: just 3 lines of code

extention UnreadSpringExpandViewController  : UIScrollViewDelegate{
    func scrollViewDidScroll(_ scrollView: UIScrollView) {
        if scrollView.isDragging {
            self.springMenu.progress = scrollView.contentOffset.x/self.springMenu.bounds.width
        }
    }
}

Thanks

UnRead is my favourite Rss App in my iPhone.Thanks to Jared Sinclair who create that fatastic App.

unreadslidemenu's People

Contributors

sishenyihuba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.