Get Updates By E-mail 

iOS Development Libraries

This category mainly features open source libraries for iOS development. Any library relevant for iOS developers can be posted here, that includes libraries specifically for game development on the iPhone and iPad.

If you would like to add a library please submit it here.

Snowflake – A Swift SVG Library Featuring A Clean Syntax And Animatable Layers

  •  
  •  
  •  
  •  
  •  

Snowflake is an open source Swift based library from Khoa Pham for working with SVG files.

SnowFLake allows you to display SVG data and loads it into a Shape and Style elements which can be modified, or you could manipulate the Shape and Style within code to create SVG elemnts in Swift.

The SVG elements are drawn using CASHapeLayer’s and can the different SVG laters can be manipulated as CAShapeLayers so you can do some great things such as Animation.

This image from the readme shows an example of animating an SVG image as a CAShapeLayer:

Snowflake

You can find Snowflake on Github here.

An interesting Swift SVG library.


  •  
  •  
  •  
  •  
  •  

TextStyle – A Swift Library Allowing You To Easily Manage Text Styles

  •  
  •  
  •  
  •  
  •  

TextSTyle is an open source swift library from Yalantis that provides a declarative syntax for defining typefaces with some nice extras.

With TextStyle you can quickly define all the fonts to use for a specific font family like this:

let helvetica = Font(
       light: "Helvetica-Light",
       lightItalic: "Helvetica-LightOblique",
       regular: "Helvetica",
       italic: "Helvetica-Oblique",
       bold: "Helvetica-Bold",
       boldItalic: «Helvetica-BoldOblique")

And also quickly access the different styles like in this example showing how one could utilize the defined bold font:

let header = plainText.withSize(18.0).uppercase().bold()

You can also change the thickness, and color attributes and more.

You can read more about TextStyle on the Yalantis blog.

You can find TextStyle on Github here.

A great library for defining text styles.


  •  
  •  
  •  
  •  
  •  

FileExplorer – iOS Swift UI Component For File Browsing, Deleting, And PReviewing

  •  
  •  
  •  
  •  
  •  

FileExplorer is an open source Swift based component submitted Rafal providing a great interface for browsing files on the local file system.

FileExplorer allows the user to navigate between directories, deleting files, and previewing of image, audio, video, and pdf files. There is also integrated search, and you can add an API for extending FileExplorer to support other file types.

This animation from the readme shows FileExplorer in action:
FileExplorer

You can find FileExplorer on Github here.

A nice easy way to add file browsing into an app.


  •  
  •  
  •  
  •  
  •  

Vulcan – Easy Swift Image Downloading With Built In Caching, Multi-Download Support, And More

  •  
  •  
  •  
  •  
  •  

Vulcan is an open source Swift library from Jin Sasaki that simplifies image downloading with built-in support for multi-image downloading, image caching.

In addition to multiple downloads and caching Vulcan also adds support for the WebP image format for extremely small image file sizes.

This snippet from the readme shows how to perform image downloading:

import Vulcan

// Single downloading
imageView.vl_setImage(url: URL(string: "/path/to/image")!)

// Multi downloading
// This image will be overridden by the image of higher priority URL.
imageView.vl_setImage(urls: [
    .url(URL(string: "/path/to/image")!, priority: 100),
    .url(URL(string: "/path/to/image")!, priority: 1000)
    ])

You can find Vulcan on Github here.

A nice pure Swift library for image downloading.


  •  
  •  
  •  
  •  
  •  

Timepiece – Swift Library That Dramatically Simplifies Working With Dates

  •  
  •  
  •  
  •  
  •  

Timepiece is an open source Swift library from Naoto Kaneko for working with dates with clean and intuitive syntax that works with iOS, macOS, tvOS and watchOS.

In addition to simple date creation Timepiece supports date calculations, formatting, and parsing of dates.

These code snippets from the readme show the syntax of using Timepiece:

Date(era: 235, year: 26, month: 8, day: 14, hour: 20, minute: 25, second: 43, nanosecond: 0, on: Calendar(identifier: .japanese))
Date(year: 2014, month: 8, day: 14, hour: 20, minute: 25, second: 43, nanosecond: 0)
Date(year: 2014, month: 8, day: 14, hour: 20, minute: 25, second: 43)
Date(year: 2014, month: 8, day: 14)

Date.today()
Date.yesterday()
Date.tomorrow()

now + 1.year
now - 2.months
now + (3.weeks - 4.days + 5.hours)

1.year.later
1.year.ago

now.string(inDateStyle: .long, andTimeStyle: .medium)
now.dateString(in: .medium)
now.timeString(in: .short)

3.days.string(in: .full)

"2014/8/14".date(inFormat: "yyyy/MM/dd")
"2014-08-14T20:25:43+0900".dateInISO8601Format()

You can find Timepiece on Github here.

A nice Swift library for working with dates.


  •  
  •  
  •  
  •  
  •