5 iOS Libraries to Make Your App Interface Better

A zoomable grid, bouncy collection view, colors utility and more!

Domenico Nicoli
Dec 6, 2019 · 4 min read
Photo by Jessica Ruscello on Unsplash

1. BSZoomGridScrollView

Today, we’ll start with BSZoomGridScrollView, an iOS library made in Swift that provides a grid scroll view containing all your images array with the possibility to zoom, like the Apple Photos app.

The library will return the image selected by the user, detected by long press and pan gesture. The interface can also be customized to change the number of columns and rows.


2. BouncyLayout

BouncyLayout is a library that works with every UICollectionView and will make your cell bounce! Made entirely in Swift, it supports horizontal and vertical scrolling.

The only thing you have to do to make it work is:

  • Import BouncyLayout
  • Create an instance of BouncyLayout()
  • Add it to your UICollectionView

Example:

import BouncyLayoutlet collectionLayout = BouncyLayout()UICollectionView(frame: .zero, collectionViewLayout: collectionLayout)

3. Gliding Collection

Gliding-collection by Ramotion is a beautiful, customizable horizontal and vertical scroll view implemented in a UICollectionView.

To use it, you need to create a view controller class, add a UIView on Storyboard and change the class to GlidingCollection, connect then the view to your code with a @IBOutlet, make your view controller conform to GlidingCollectionDatasource, and make your view controller conform to UICollectionViewDatasource.

If you need more information about how to implement this library, check the “how to use” section on Github.


4. CarLensCollectionViewLayout

The UICollectionView doesn’t have a transition effect animation as the default when you scroll between items.

CarLensCollectionViewLayout is an easy-to-use collection view layout that allows you to create a card-like animation on your UICollectionView with a few lines of code!

You can also customize the layout by changing the parameters available on CarLensCollectionViewLayoutOptions. For example:

  • MinimumSpacing — The minimum space between cells.
  • DecelerationRate — The deceleration for the scroll view.
  • ShouldShowScrollIndicator — The value that indicates if the collection view should have a scroll indicator.
  • ItemSize — Sets the size of cells.

5. Hue

Lastly, Hue is the all-in-one utility that you need for colors.

With this library, you can easily use hex color, computed color properties (like .isDarkColor or .isBlackOrWhite), apply alpha, create gradients, get blue/green/red component from color, and much more!

You can find more examples on the official repo on Github.


Better Programming

Advice for programmers.

Domenico Nicoli

Written by

Backend Developer (C#, VB.NET, Microsoft SQL Server), iOS developer (Swift). Parma, Italy 🇮🇹 https://linkedin.com/in/domenico-nicoli-5738ba15a

Better Programming

Advice for programmers.

More From Medium

More from Better Programming

More from Better Programming

More from Better Programming

More from Better Programming

The Zero-Dollar Infrastructure Stack

1.2K

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade