All Projects → oyvinddd → Ohcubeview

oyvinddd / Ohcubeview

Licence: mit
A UIScrollView subclass inspired by the Instagram Stories cube animation

Programming Languages

ruby
36898 projects - #4 most used programming language
swift
15916 projects

Projects that are alternatives of or similar to Ohcubeview

Instagramactivityindicator
Activity Indicator similar to Instagram's.
Stars: ✭ 138 (+187.5%)
Mutual labels:  instagram, uikit
Pixel
📷 A composable image editor using Core Image and Metal.
Stars: ✭ 2,495 (+5097.92%)
Mutual labels:  instagram, uikit
IGStoryButtonKit
IGStoryButtonKit provides an easy-to-use button with rich animation and multiple way inspired by instagram story/stories.
Stars: ✭ 31 (-35.42%)
Mutual labels:  instagram, uikit
Gatsby Source Instagram All
⚛️📸 Gatsby source plugin for fetching all your instagram posts
Stars: ✭ 42 (-12.5%)
Mutual labels:  instagram
Spalert
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
Stars: ✭ 1,014 (+2012.5%)
Mutual labels:  uikit
Pagingkit
PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries.
Stars: ✭ 1,030 (+2045.83%)
Mutual labels:  uikit
Cacao
Pure Swift Cross-platform UIKit (Cocoa Touch) implementation (Supports Linux)
Stars: ✭ 1,040 (+2066.67%)
Mutual labels:  uikit
Peel Off Animation Example Code
Example code for https://robb.is/working-on/a-peel-off-animation
Stars: ✭ 37 (-22.92%)
Mutual labels:  uikit
Shellphish
Phishing Tool for 18 social media: Instagram, Facebook, Snapchat, Github, Twitter, Yahoo, Protonmail, Spotify, Netflix, Linkedin, Wordpress, Origin, Steam, Microsoft, InstaFollowers, Gitlab, Pinterest
Stars: ✭ 1,037 (+2060.42%)
Mutual labels:  instagram
Availity Uikit
Availity UI Kit powered by Bootstrap 4
Stars: ✭ 44 (-8.33%)
Mutual labels:  uikit
Tail Kit
Tail-kit is a free and open source components and templates kit fully coded with Tailwind css 2.0.
Stars: ✭ 997 (+1977.08%)
Mutual labels:  uikit
Public Instagram
Tool to fetch Instagram's public content.
Stars: ✭ 43 (-10.42%)
Mutual labels:  instagram
Ibpcollectionviewcompositionallayout
Backport of UICollectionViewCompositionalLayout to earlier iOS 12
Stars: ✭ 1,034 (+2054.17%)
Mutual labels:  uikit
Instarat
best tool for instagram followers increasing
Stars: ✭ 42 (-12.5%)
Mutual labels:  instagram
Cardkit
iOS 11 cards in Swift
Stars: ✭ 47 (-2.08%)
Mutual labels:  uikit
Staterestorationdemo
App to demonstrate state preservation and restoration APIs
Stars: ✭ 41 (-14.58%)
Mutual labels:  uikit
Social Scraper
Tổng hợp script crawl dữ liệu từ các mạng xã hội & website tiếng Việt
Stars: ✭ 47 (-2.08%)
Mutual labels:  instagram
Swifthuecolorpicker
iOS HUE color picker
Stars: ✭ 44 (-8.33%)
Mutual labels:  uikit
H5ui
Lightweight, elegant open source mobile UI style library.
Stars: ✭ 44 (-8.33%)
Mutual labels:  uikit
Nemiro.oauth.dll
Nemiro.OAuth is a class library for authorization via OAuth protocol in .NET Framework
Stars: ✭ 45 (-6.25%)
Mutual labels:  instagram

OHCubeView

Scroll view subclass inspired by the Instagram Stories cube.

demonstration

Requirements

  • iOS >= 9.0
  • Autolayout

N.B.

Only supports portrait mode.

Installation

CocoaPods

In your podfile, add pod 'OHCubeView' and run pod install. Done!

Usage

  • Using interface builder, add a UIScrollView instance to the storyboard and make it a subclass of OHCubeView. Hook the instance up to an IBOutlet in the view controller.

Usage 1

  • In your view controller, programmatically add subviews to the cube view (note that this can be any kind of UIView subclass). Layout constraints are automatically added to the subviews.
import UIKit
import OHCubeView

class ViewController: UIViewController {

    @IBOutlet weak var cubeView: OHCubeView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        // 1. Create subviews for our cube view (in this case, five image views)
        
        let iv1 = UIImageView(image: UIImage(named: "img1"))
        let iv2 = UIImageView(image: UIImage(named: "img2"))
        let iv3 = UIImageView(image: UIImage(named: "img3"))
        let iv4 = UIImageView(image: UIImage(named: "img4"))
        let iv5 = UIImageView(image: UIImage(named: "img5"))
        
        // 2. Add all subviews to the cube view
        
        cubeView.addChildViews([iv1, iv2, iv3, iv4, iv5])
    }
}

TODOs

  • Support for infinite paging
  • Add custom delegate methods
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].