All Projects → fumiyasac → ScrollAnimationShowcase

fumiyasac / ScrollAnimationShowcase

Licence: other
[ING] - UIScrollViewやUICollectionViewの特性を活用した表現サンプル

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to ScrollAnimationShowcase

ios ui recipe showcase
iOSアプリ開発 - UI実装であると嬉しいレシピブック掲載サンプル
Stars: ✭ 54 (+260%)
Mutual labels:  uicollectionview, uipageviewcontroller, containerview
iOSEasyList
A data-driven UICollectionView and UITableView framework for building fast and flexible lists
Stars: ✭ 29 (+93.33%)
Mutual labels:  uicollectionview, infinite-scroll, uicollectionviewlayout
Squaremosaiclayout
An extandable mosaic UICollectionViewLayout with a focus on extremely flexible customizations 🔶
Stars: ✭ 243 (+1520%)
Mutual labels:  uicollectionview, uicollectionviewlayout
CPCollectionViewWheelLayoutSwift
New url:https://github.com/ParsifalC/CPCollectionViewKit Objective-C Version:https://github.com/ParsifalC/CPCollectionViewWheelLayout
Stars: ✭ 16 (+6.67%)
Mutual labels:  uicollectionview, uicollectionviewlayout
CPCollectionViewWheelLayout
An interesting wheel layout of collection view.Swift version:https://github.com/ParsifalC/CPCollectionViewKit
Stars: ✭ 16 (+6.67%)
Mutual labels:  uicollectionview, uicollectionviewlayout
HorizontalStickyHeaderLayout
Horizontal UICollectionViewLayout with Sticky HeaderView
Stars: ✭ 70 (+366.67%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Chatlayout
ChatLayout is an alternative solution to MessageKit. It uses custom UICollectionViewLayout to provide you full control over the presentation as well as all the tools available in UICollectionView. It supports dynamic cells and supplementary view sizes.
Stars: ✭ 184 (+1126.67%)
Mutual labels:  uicollectionview, uicollectionviewlayout
CollectionLayouts
A collection of UICollectionViewLayouts
Stars: ✭ 64 (+326.67%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Cpcollectionviewkit
Interesting UICollectionView layouts and transitions
Stars: ✭ 140 (+833.33%)
Mutual labels:  uicollectionview, uicollectionviewlayout
CollectionViewMultiColumnLayout
A tiled waterfal/mosaic UICollectionViewLayout with support for explicit columns.
Stars: ✭ 13 (-13.33%)
Mutual labels:  uicollectionview, uicollectionviewlayout
2DUICollectionViewSwift
A simple and elegant 2Dimensional UICollectionView which is most commonly used in ecommerce apps, music streaming apps etc. Easily customisable as per your requirements as it is designed keeping the superset requirement in mind. Developed in latest Swift syntax.
Stars: ✭ 28 (+86.67%)
Mutual labels:  uicollectionview, uiscrollview
XLRefresh
iOS 下拉刷新工具
Stars: ✭ 25 (+66.67%)
Mutual labels:  uicollectionview, uiscrollview
ScaledCenterCarousel
A carousel-based layout for UICollectionView with scaled center item.
Stars: ✭ 16 (+6.67%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Collectionviewslantedlayout
A CollectionView Layout displaying a slanted cells
Stars: ✭ 2,029 (+13426.67%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Admozaiccollectionviewlayout
ADMozaicCollectionViewLayout is yet another UICollectionViewLayout subclass that implements "brick", "mozaic" or Pinterest style layout.
Stars: ✭ 226 (+1406.67%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Lxreorderablecollectionviewflowlayout
Extends `UICollectionViewFlowLayout` to support reordering of cells. Similar to long press and pan on books in iBook.
Stars: ✭ 1,831 (+12106.67%)
Mutual labels:  uicollectionview, uicollectionviewlayout
JQCollectionViewAlignLayout
A custom layout object based on flow layout. Added supports for horizontal, vertical alignment and RTL direction of collection view items.(available for both UICollectionView and NSCollectionView)
Stars: ✭ 69 (+360%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Gskstretchyheaderview
A generic stretchy header for UITableView and UICollectionView
Stars: ✭ 1,624 (+10726.67%)
Mutual labels:  uicollectionview, uiscrollview
Closures
Swifty closures for UIKit and Foundation
Stars: ✭ 1,720 (+11366.67%)
Mutual labels:  uicollectionview, uiscrollview
CSStickyFlowLayoutHeaders
UICollectionView replacement for your amazing headers
Stars: ✭ 16 (+6.67%)
Mutual labels:  uicollectionview, uicollectionviewlayout

ScrollAnimationShowcase

[ING] - UIScrollViewやUICollectionViewの特性を活用した表現サンプル

実装機能一覧

UICollectionViewとUIPageViewControllerの性質を利用した、メディアアプリでよく見る無限スクロールするタブの動きを実装したUIサンプルになります。

本サンプルの画面設計図

全体的なアーキテクチャや全体的な画面構成、そしてそれぞれの画面に対応するViewControllerや処理の橋渡しを行うための各種Protocolとの関連性などをまとめたものは下記の図解のような形となります。

1. 画面キャプチャ:

capture.jpg

2. Storyboardの構成:

infinite_tab_storyboard.png

3. 該当箇所の全体的なポイントをまとめた概略図:

whole_relationships.png

UICollectionViewやUIScrollViewを有効活用する

このサンプルでは、UICollectionViewやUIScrollViewの性質や各種Delegateの処理を活用してUI表現をしています。特に表現を実現する前段階において押さえておくと良さそうな部分についてまとめています。

1. UICollectionViewFlowLayoutを継承したクラスを適用する:

uicollectionview_layout_atrributes.png

2. 無限スクロールを伴うタブ型UI実装する上で必要なセルのインデックス値の調整する:

uicollectionview_calculate_index.png

その他コードにおいてポイントとなる部分の実装

具体的な実装においてポイントになる部分については、下図に示した部分になります。

1. インデックス値を調整するための実装:

point1.png

2. 配置したUICollectionViewのoffset値を調整するための実装:

point2.png

3. UICollectionViewCellのインデックス値の変更の前後状態を元にUIPageViewControllerの動き方を決定するための実装:

point3.png

4. 配置したUICollectionViewのスクロールが停止した際の表示位置を調整するための実装:

point4.png

その他

このサンプル全体の詳細解説とポイントをまとめたものは下記に掲載しております。

(Qiita) https://qiita.com/fumiyasac@github/items/af4fed8ea4d0b94e6bc4

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