All Projects → Ahmadalsofi → Sopullupview

Ahmadalsofi / Sopullupview

Licence: mit
SOPullUpView library for iOS, with pull up gesture 📱🖐️↕️

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Sopullupview

Muzonchik
iOS Music App that let you search, download and play music
Stars: ✭ 170 (-6.59%)
Mutual labels:  music
Awesome Deep Learning Music
List of articles related to deep learning applied to music
Stars: ✭ 2,195 (+1106.04%)
Mutual labels:  music
Musicx Music Player
Simple, Elegant ,Beautiful Material Android Music Player.
Stars: ✭ 179 (-1.65%)
Mutual labels:  music
Libatm
Library for generating and working with MIDI files
Stars: ✭ 171 (-6.04%)
Mutual labels:  music
Piano fundamentals
This is a Sphinx adaptation of Chaun C. Chang's book, "Fundamentals of Piano Practice."
Stars: ✭ 174 (-4.4%)
Mutual labels:  music
Ncmdump
netease cloud music copyright protection file dump
Stars: ✭ 2,058 (+1030.77%)
Mutual labels:  music
Scdl
Soundcloud Music Downloader
Stars: ✭ 2,183 (+1099.45%)
Mutual labels:  music
Piano Rs
A multiplayer piano using UDP sockets that can be played using computer keyboard, in the terminal
Stars: ✭ 180 (-1.1%)
Mutual labels:  music
Live Stream Radio
24/7 live stream video radio station CLI / API 📹 📻
Stars: ✭ 175 (-3.85%)
Mutual labels:  music
Aubio
a library for audio and music analysis
Stars: ✭ 2,601 (+1329.12%)
Mutual labels:  music
Spotify Now Playing
Spotify now playing information and control popup for macOS menu bar
Stars: ✭ 171 (-6.04%)
Mutual labels:  music
Jamtaba
Jamtaba is a software to play online music jam sessions.
Stars: ✭ 174 (-4.4%)
Mutual labels:  music
Muda
A library for augmenting annotated audio data
Stars: ✭ 177 (-2.75%)
Mutual labels:  music
Awesome Piracy
A curated list of awesome warez and piracy links
Stars: ✭ 13,911 (+7543.41%)
Mutual labels:  music
Cmus Osx
Adds track change notifications, and media key support to cmus.
Stars: ✭ 179 (-1.65%)
Mutual labels:  music
Mirdata
Python library to work with Music Information Retrieval datasets
Stars: ✭ 170 (-6.59%)
Mutual labels:  music
Otter
Music player for Funkwhale
Stars: ✭ 177 (-2.75%)
Mutual labels:  music
Mixxx
Mixxx is Free DJ software that gives you everything you need to perform live mixes.
Stars: ✭ 2,510 (+1279.12%)
Mutual labels:  music
Zen Audio Player.github.io
Listen to YouTube videos, without the distracting visuals.
Stars: ✭ 180 (-1.1%)
Mutual labels:  music
Sdmusic
Search && Download Music from multi-platform
Stars: ✭ 178 (-2.2%)
Mutual labels:  music

SOPullUpView

Version License Platform

Installation

SOPullUpView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SOPullUpView'

Basic usage

  1. Add pod 'SOPullUpView' to your Podfile.

  2. The main part of the library SOPullUpView. It defines an instance of SOPullUpControl where a MainViewController, called the SOPullUpView , can be dragged up and down, hiding or revealing the content. As an example, defines SOPullUpControl and assign the datasource and init the view to be the PullUpViewController

      let pullUpController = SOPullUpControl()
      
      override func viewDidLoad() {
         super.viewDidLoad()
          pullUpController.dataSource = self
          pullUpController.setupCard(from: view)
       }
    
  3. Make sure the main view controller that will adopt SOPullUpViewDataSource

    • pullUpViewCollapsedViewHeight ...startViewHeightForPullUpViewController...

      As an example, the StartViewHeight is determined by the following delegate callback:

         func pullUpViewCollapsedViewHeight() -> CGFloat {
             return  100.0
           }
      
    • pullUpViewController ...UIViewController as child of your main controller...

        func pullUpViewController() -> UIViewController {
           guard let vc = UIStoryboard(name: StoryBoardName, bundle: nil).instantiateInitialViewController() as? YourPullUpView else {return UIViewController()}
           vc.pullUpControl = self.pullUpController
           return vc
        }
      
    • pullUpViewExpandedViewHeight ...maximumHeightForPullUpViewController... (Optional method)

  4. In the PullUpViewController defines an instance from SOPullUpControl to be initialized from the ParentViewContrroler

     var pullUpControl: SOPullUpControl? {
         didSet {
             pullUpControl?.delegate = self
         }
     }
    
  5. finally just adopt the SOPullUpViewDelegate in the pullUpViewController

    • pullUpViewStatus ...will trigger the status of the pull Up View when it's collapsed and expanded...

         func pullUpViewStatus(_ sender: UIViewController, didChangeTo status: PullUpStatus) {
             switch status {
               case .collapsed:
               case .expanded:
            }
           }
      
    • pullUpHandleArea ... return the view that will handle the action of the user when click on it, will collapse and expand the pullUpViewController....

        func pullUpHandleArea(_ sender: UIViewController) -> UIView {
            return handleArea
        }
      

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Ahmadalsofi, [email protected]

Reference

Brian Advent

License

SOPullUpView is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].