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:
You can find Snowflake on Github here.
An interesting Swift SVG library.
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:
And also quickly access the different styles like in this example showing how one could utilize the defined bold font:
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 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.
You can find FileExplorer on Github here.
A nice easy way to add file browsing into an app.
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:
// 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.
.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 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(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)
now + 1.year
now - 2.months
now + (3.weeks - 4.days + 5.hours)
now.string(inDateStyle: .long, andTimeStyle: .medium)
You can find Timepiece on Github here.
A nice Swift library for working with dates.