bernikovich / Stickyheaderflowlayout
Licence: mit
Sticky headers for UICollectionView written in pure Swift (based on CSStickyHeaderFlowLayout)
Stars: ✭ 144
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Stickyheaderflowlayout
Collor
A declarative-ui framework for UICollectionView with great and useful features.
Stars: ✭ 182 (+26.39%)
Mutual labels: cocoapods, uicollectionview
Persei
Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift
Stars: ✭ 3,395 (+2257.64%)
Mutual labels: cocoapods, uicollectionview
Infinitecollectionview
Infinite horizontal scrolling using UICollectionView.
Stars: ✭ 218 (+51.39%)
Mutual labels: cocoapods, uicollectionview
Closures
Swifty closures for UIKit and Foundation
Stars: ✭ 1,720 (+1094.44%)
Mutual labels: cocoapods, uicollectionview
Koyomi
Simple customizable calendar component in Swift 📆
Stars: ✭ 716 (+397.22%)
Mutual labels: cocoapods, uicollectionview
Vbpiledview
Simple and beautiful stacked UIView to use as a replacement for an UITableView, UIImageView or as a menu
Stars: ✭ 164 (+13.89%)
Mutual labels: cocoapods, uicollectionview
Gemini
Gemini is rich scroll based animation framework for iOS, written in Swift.
Stars: ✭ 2,965 (+1959.03%)
Mutual labels: cocoapods, uicollectionview
Campcotcollectionview
Collapse and expand UICollectionView sections with one method call.
Stars: ✭ 161 (+11.81%)
Mutual labels: cocoapods, uicollectionview
Animatedcollectionviewlayout
A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.
Stars: ✭ 4,333 (+2909.03%)
Mutual labels: cocoapods, uicollectionview
Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (+2783.33%)
Mutual labels: cocoapods, uicollectionview
Admozaiccollectionviewlayout
ADMozaicCollectionViewLayout is yet another UICollectionViewLayout subclass that implements "brick", "mozaic" or Pinterest style layout.
Stars: ✭ 226 (+56.94%)
Mutual labels: cocoapods, uicollectionview
Centeredcollectionview
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
Stars: ✭ 965 (+570.14%)
Mutual labels: cocoapods, uicollectionview
Ehhorizontalselectionview
Horizontal table view style controller
Stars: ✭ 346 (+140.28%)
Mutual labels: cocoapods, uicollectionview
Greedo Layout For Ios
Full aspect ratio grid layout for iOS
Stars: ✭ 837 (+481.25%)
Mutual labels: cocoapods, uicollectionview
Tangramkit
TangramKit is a powerful iOS UI framework implemented by Swift. It integrates the functions with Android layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView
Stars: ✭ 984 (+583.33%)
Mutual labels: cocoapods, uicollectionview
Contentful.swift
A delightful Swift interface to Contentful's content delivery API.
Stars: ✭ 132 (-8.33%)
Mutual labels: cocoapods
Switch
💊 An iOS switch control implemented in Swift with full Interface Builder support
Stars: ✭ 132 (-8.33%)
Mutual labels: cocoapods
Abexpandableview
Expandable, collapsible, filterable and single/multi selectable table view.
Stars: ✭ 138 (-4.17%)
Mutual labels: cocoapods
StickyHeaderFlowLayout
Sticky headers for UICollectionView written in pure Swift
Based on CSStickyHeaderFlowLayout. StickyHeaderFlowLayout
makes it easy to create sticky headers in UICollectionView
.
Integration
CocoaPods
You can use CocoaPods to install StickyHeaderFlowLayout
by adding it to your Podfile
:
platform :ios, '9.0'
target 'MyApp' do
pod 'StickyHeaderFlowLayout'
end
Manually
To use this library in your project manually you may:
Just drag StickyHeaderFlowLayout.swift
and StickyHeaderFlowLayoutAttributes.swift
to the project tree
Usage
Sample project
Repository contains small sample project which shows basic integration.
Basic idea
- Create layout and collection view
let layout = StickyHeaderFlowLayout()
let collectionView = UICollectionView(frame: .zero, collectionViewLayout: layout)
- Setup sticky header
collectionView.register(CollectionParallaxHeader.self, forSupplementaryViewOfKind: StickyHeaderFlowLayout.parallaxHeaderIdentifier, withReuseIdentifier: "parallaxHeader")
layout.parallaxHeaderReferenceSize = CGSize(width: view.frame.size.width, height: 200)
layout.parallaxHeaderMinimumReferenceSize = CGSize(width: view.frame.size.width, height: 160)
- Return correct view in
viewForSupplementaryElementOfKind
function
override func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView {
if kind == StickyHeaderFlowLayout.parallaxHeaderIdentifier {
return collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: "parallaxHeader", for: indexPath)
}
// Other views.
...
}
License
StickyHeaderFlowLayout
is released under the MIT license. See LICENSE
for details.
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].