All Projects → fdzsergio → Sffocusviewlayout

fdzsergio / Sffocusviewlayout

Licence: mit
UICollectionViewLayout with focused content

Programming Languages

swift
15916 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Sffocusviewlayout

Centeredcollectionview
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
Stars: ✭ 965 (-45.17%)
Mutual labels:  cocoapods, carthage, uicollectionviewlayout
Admozaiccollectionviewlayout
ADMozaicCollectionViewLayout is yet another UICollectionViewLayout subclass that implements "brick", "mozaic" or Pinterest style layout.
Stars: ✭ 226 (-87.16%)
Mutual labels:  cocoapods, carthage, uicollectionviewlayout
Poliopager
A flexible TabBarController with search tab like SNKRS.
Stars: ✭ 133 (-92.44%)
Mutual labels:  cocoapods, carthage
Bettersegmentedcontrol
An easy to use, customizable replacement for UISegmentedControl & UISwitch.
Stars: ✭ 1,782 (+1.25%)
Mutual labels:  cocoapods, carthage
Closures
Swifty closures for UIKit and Foundation
Stars: ✭ 1,720 (-2.27%)
Mutual labels:  cocoapods, carthage
Sqift
Powerful Swift wrapper for SQLite
Stars: ✭ 119 (-93.24%)
Mutual labels:  cocoapods, carthage
Actionclosurable
Extensions which helps to convert objc-style target/action to swifty closures
Stars: ✭ 120 (-93.18%)
Mutual labels:  cocoapods, carthage
Croc
Swift emoji string parsing library
Stars: ✭ 124 (-92.95%)
Mutual labels:  cocoapods, carthage
Shari
Shari is the alternative to the library of UIPickerView(drum roll) in Swift. You can select a item using UITableView.
Stars: ✭ 111 (-93.69%)
Mutual labels:  cocoapods, carthage
Switch
💊 An iOS switch control implemented in Swift with full Interface Builder support
Stars: ✭ 132 (-92.5%)
Mutual labels:  cocoapods, carthage
Coregpx
A library for parsing and creation of GPX location files. Purely Swift.
Stars: ✭ 132 (-92.5%)
Mutual labels:  cocoapods, carthage
Donut
Donut is a library for arranging views circularly like a donut.
Stars: ✭ 141 (-91.99%)
Mutual labels:  cocoapods, carthage
Swifty360player
iOS 360-degree video player streaming from an AVPlayer.
Stars: ✭ 118 (-93.3%)
Mutual labels:  cocoapods, carthage
Fontawesome.swift
Use FontAwesome in your Swift projects
Stars: ✭ 1,513 (-14.03%)
Mutual labels:  cocoapods, carthage
Pipkit
Picture in Picture for iOS
Stars: ✭ 140 (-92.05%)
Mutual labels:  cocoapods, carthage
Microfeatures Example
📦📱 Example of iOS app built using the uFeatures architecture
Stars: ✭ 112 (-93.64%)
Mutual labels:  cocoapods, carthage
Adpuzzleanimation
Inspired by Fabric - Answers animation. Allows to "build" given view with pieces. Allows to "destroy" given view into pieces
Stars: ✭ 123 (-93.01%)
Mutual labels:  cocoapods, carthage
Ducttape
📦 KeyPath dynamicMemberLookup based syntax sugar for Swift.
Stars: ✭ 138 (-92.16%)
Mutual labels:  cocoapods, carthage
Randomkit
Random data generation in Swift
Stars: ✭ 1,458 (-17.16%)
Mutual labels:  cocoapods, carthage
Device
Light weight tool for detecting the current device and screen size written in swift.
Stars: ✭ 1,503 (-14.6%)
Mutual labels:  cocoapods, carthage

SFFocusViewLayout

Travis CI codecov.io Swift Version Version Swift Package Manager compatible Carthage compatible Platform License

Overview

SFFocusViewLayout is a UICollectionViewLayout subclass for displaying focused content on UICollectionView which is the largest cell of all.

Usage

SFFocusViewLayout contains three properties to customize the interface.

var standardHeight: CGFloat
var focusedHeight: CGFloat
var dragOffset: CGFloat
  • focusedHeight is the height cells should be when focused. Defaults to 280
  • standardHeight is the height cells should be when collapsed. Defaults to 100
  • dragOffset is the amount the user needs to scroll before the featured cell changes. Defaults to 180

Versions

Swift

If you want to use a Swift 3 implementation of this framework use a 3.0 or greater version

pod 'SFFocusViewLayout', '~> 3.0'

Objective–C

If you want to use a Objective–C implementation of this framework use a 2.0 or greater version

pod 'SFFocusViewLayout', '~> 2.0'

Installation

CocoaPods

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

pod 'SFFocusViewLayout'

Carthage

You can also install it via Carthage. To do so, add the following to your Cartfile:

github 'fdzsergio/SFFocusViewLayout'

Roadmap

  • Carthage support
  • Swift compatible
  • Swift version
  • Tests
  • Upgrade to Swift 3

Author

Sergio Fernández, [email protected]

Acknowledgement

This framework is heavily inspired by the Ultravisual example of Ray Wenderlich.

License

SFFocusViewLayout 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].