A bunch of layouts providing light and seamless experiences in your Collection View

Overview

Swinflate

Carthage Compatible License Swift 4.2 Platform

Description

Swinflate aims to encorporate a set of collection view layouts which provide a better and even more fluid experience in collection vieews . It is amongst the goals of this project to make it ruthlessly simple for you to use it in your application.

Available layouts

SWInflateLayout

SWHorizontalStackLayout

Requirements

  • Swift 4.2
  • Xcode 10+
  • iOS 11.0+

Installation

Swinflate is available for installation via Swift Package Manager and Carthage.


To install via Carthage, paste the next line your Cartfile:
github "https://github.com/VladIacobIonut/Swinflate" ~> 1.0.3

Usage

This layouts are designed to work with horizontal collection view of a single row and multiple columns.

  1. Before using it, please import it in the class where your collectionView lies.
  import Swinflate
  1. To implement it, just pass an instance of one of the layout classes enumerated above to the constructor of the collectionView.
SWInflateLayout
  collectionView = UICollectionView(frame: .zero, collectionViewLayout: SWInflateLayout())
SWHorizontalStackLayout
let stackLayout = SWHorizontalStackLayout()
stackLayout.hasStackEffect = true
collectionView = UICollectionView(frame: .zero, collectionViewLayout: stackLayout)

Note

  • This layout allow you to enable or disable the stack effect by setting the hasStackEffect property ( this property is false by default).
  • Both layouts allow you to enable or disable the paging effect by setting the isPagingEnabled property ( this property is true by default).
  1. You should also return the item size for your cells in the sizeForItem method of the UICollectionViewDelegateFlowLayout .
extension CustomLayoutViewController: UICollectionViewDelegateFlowLayout {
    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
        return CGSize(width: cellWidth, height: cellHeight)
        }
    }
You might also like...
A SwiftUI collection view with support for custom layouts, preloading, and more.
A SwiftUI collection view with support for custom layouts, preloading, and more.

ASCollectionView A SwiftUI implementation of UICollectionView & UITableView. Here's some of its useful features: supports preloading and onAppear/onDi

Application where you can build your portfolio with your Educations, Experiences, Projects, and Achievements
Application where you can build your portfolio with your Educations, Experiences, Projects, and Achievements

App Store Link Application where you can build your portfolio with your Educations, Experiences, Projects, and Achievements Description Signup with ne

Custom transition between two collection view layouts
Custom transition between two collection view layouts

Display Switcher We designed a UI that allows users to switch between list and grid views on the fly and choose the most convenient display type. List

Seamless Roman numeral conversion in Swift
Seamless Roman numeral conversion in Swift

Installation • Usage • License • Documentation Roman is a Swift framework that allows for seamless Roman numeral conversion. Installation Compatibilit

Instagram clone, the main focus of the app is the seamless swipe between views that we see on instagram
Instagram clone, the main focus of the app is the seamless swipe between views that we see on instagram

InstaSwipe Instagram clone, the main focus of the app is the seamless swipe betw

SamuraiTransition is an open source Swift based library providing a collection of ViewController transitions featuring a number of neat “cutting” animations.
SamuraiTransition is an open source Swift based library providing a collection of ViewController transitions featuring a number of neat “cutting” animations.

SamuraiTransiton is a ViewController transition framework in Swift. It is an animation as if Samurai cut out the screen with a sword. transition types

SamuraiTransition is an open source Swift based library providing a collection of ViewController transitions featuring a number of neat “cutting” animations.
SamuraiTransition is an open source Swift based library providing a collection of ViewController transitions featuring a number of neat “cutting” animations.

SamuraiTransiton is a ViewController transition framework in Swift. It is an animation as if Samurai cut out the screen with a sword. transition types

SwiftyWalkthrough is a library for creating great walkthrough experiences in your apps, written in Swift.
SwiftyWalkthrough is a library for creating great walkthrough experiences in your apps, written in Swift.

SwiftyWalkthrough is a library for creating great walkthrough experiences in your apps, written in Swift. You can use the library to allow users to navigate and explore your app, step by step, in a predefined way controlled by you.

A collection of native SwiftUI layouts (iOS 16+)

SwiftUILayouts A library of commonly requested layouts. Implemented using SwiftUI's native layout system. NOTE: SwiftUILayouts requires iOS 16 or abov

An iOS library for SwiftUI to create draggable sheet experiences similar to iOS applications like Maps and Stocks.

An iOS library for SwiftUI to create draggable sheet experiences similar to iOS applications like Maps and Stocks.

A swifty iOS framework that allows developers to create beautiful onboarding experiences.
A swifty iOS framework that allows developers to create beautiful onboarding experiences.

SwiftyOnboard is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial SwiftyOnboard A simp

SwiftAR is a declerative framework to build AR experiences, with a SwiftUI inspired design.
SwiftAR is a declerative framework to build AR experiences, with a SwiftUI inspired design.

SwiftAR is a declerative framework to build AR experiences, with a SwiftUI inspired design. It builds on the base types Experience, Anchor and

A SwiftUI component for launching custom picture-in-picture experiences

Pipify for SwiftUI This library introduces a new SwiftUI modifier that enables a view to be shown within a Picture in Picture overlay. This overlay al

Modern-collection-view - Modern collection view for swift

Modern collection view Sample application demonstrating the use of collection vi

PJFDataSource is a small library that provides a simple, clean architecture for your app to manage its data sources while providing a consistent user interface for common content states (i.e. loading, loaded, empty, and error).
PJFDataSource is a small library that provides a simple, clean architecture for your app to manage its data sources while providing a consistent user interface for common content states (i.e. loading, loaded, empty, and error).

PJFDataSource PJFDataSource is a small library that provides a simple, clean architecture for your app to manage its data sources while providing a co

Tool to debug layouts directly on iOS devices: inspect layers in 3D and debug each visible view attributes
Tool to debug layouts directly on iOS devices: inspect layers in 3D and debug each visible view attributes

Introduction Features Inspect layouts directly on iOS devices Inspection could be triggered only if app is running under DEBUG build configuration, so

🗣Voice overlay helps you turn your user's voice into text, providing a polished UX while handling for you the necessary permissions
🗣Voice overlay helps you turn your user's voice into text, providing a polished UX while handling for you the necessary permissions

Voice overlay helps you turn your user's voice into text, providing a polished UX while handling for you the necessary permissions. It uses i

Full configurable spreadsheet view user interfaces for iOS applications. With this framework, you can easily create complex layouts like schedule, gantt chart or timetable as if you are using Excel.
Full configurable spreadsheet view user interfaces for iOS applications. With this framework, you can easily create complex layouts like schedule, gantt chart or timetable as if you are using Excel.

kishikawakatsumi/SpreadsheetView has moved! It is being actively maintained at bannzai/SpreadsheetView. This fork was created when the project was mov

Comments
  • UI style not correct with deletion

    UI style not correct with deletion

    When there are 2 two cells in the collection view, and I programmatically delete the second cell, i.e the one on the right - after reloading data for collection view, the first one still shows the UI as if it is "stacked."

    Edit:

    It also happens for all cases that involve removing last cell from the stack.

    opened by yo1995 2
  • iOS 13 IndexPath

    iOS 13 IndexPath

    Looks like on iOS 13 if you're using indexPathForItem(at: point) the layout can't find the proper indexPath.

    let midX:CGFloat = strongSelf.organizationCollectionView.bounds.midX
    let midY:CGFloat = strongSelf.organizationCollectionView.bounds.midY
    let point:CGPoint = CGPoint(x:midX, y:midY)
                        
    guard let indexPath: IndexPath = strongSelf.organizationCollectionView.indexPathForItem(at:point) else { return }
    

    This returns fine on iOS 12, but got broken on 13

    opened by pauloec 0
  • Pod file for the library

    Pod file for the library

    Hi, i like ur library but its not available through pod. How can i install through pod? I'm not familiar with carthages how i can install your lib without carthrage?

    opened by Hamza123Imran 1
Releases(1.0.4)
Owner
Vlad Iacob
iOS Developer
Vlad Iacob
Enhanced transitioning between UICollectionView layouts in iOS.

TLLayoutTransitioning Enhanced transitioning between UICollectionView layouts in iOS. ##Overview TLLayoutTransitioning provides a TLLayoutTransition t

SwiftKick Mobile 359 Oct 30, 2022
BouncyLayout is a collection view layout that makes your cells bounce.

BouncyLayout is a collection view layout that makes your cells bounce. Features Pure Swift 5. Works with every UICollectionView. Horizontal and vertic

Robert-Hein Hooijmans 4.2k Jan 3, 2023
A drop-in mosaic collection view layout with a focus on simple customizations.

FMMosaicLayout is a mosiac collection view layout. There are a great number of media-based iOS applications that use UICollectionViewFlowLayout withou

Fluid Media Inc. 591 Dec 14, 2022
A mosaic collection view layout inspired by Lightbox's Algorithm, written in Swift 🔶

TRMosaicLayout A mosaic collection view layout inspired by Lightbox's Algorithm. This is a swift implementation/extension of @fmitech's FMMosaicLayout

Vincent Le 252 Nov 23, 2022
UICollectionViewSplitLayout makes collection view more responsive.

UICollectionViewSplitLayout makes collection view more responsive. What's this? UICollectionViewSplitLayout is a subclass of UICollectionViewLayout. I

Yahoo! JAPAN 239 Dec 6, 2022
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift

CenteredCollectionView CenteredCollectionView is a lightweight drop in place UICollectionViewFlowLayout that pages and keeps its cells centered, resul

Ben Emdon 1.2k Dec 6, 2022
Blueprints is a collection of flow layouts that is meant to make your life easier when working with collection view flow layouts.

Blueprints is a collection of flow layouts that is meant to make your life easier when working with collection view flow layouts. It comes

Christoffer Winterkvist 982 Dec 7, 2022
Blueprints - A framework that is meant to make your life easier when working with collection view flow layouts.

Description Blueprints is a collection of flow layouts that is meant to make your life easier when working with collection view flow layouts. It comes

Christoffer Winterkvist 982 Dec 7, 2022
a bunch of random programs using Swift

Random-SwiftStuff (WORK IN PROGRESS) a bunch of random programs using Swift: apps mini programs calculators password generators random number generato

Kaival Shah 2 Oct 16, 2021
MacBox - A fork of MacVM that fixes a bunch of UI issues

MacVM Fixes full screen problem by removing toolbar adding start stop to the men

heapwolf 9 Sep 8, 2022