Get Updates By E-mail 

Swift

Swift programming language libraries, components, tutorials and news.

SwiftMonkey – A Swift Based Framework For Random UI Testing

  • 9
  •  
  •  
  •  
  •  

SwiftMonkey is an open source framework for randomly testing an apps user interface from Zalando.

SwiftMonkey is ideal for avoiding unexpected issues with your apps user interface as it will stress test your app with touches and swipes. SwiftMonkey integrates with the Xcode UI testing framework and also allows you to visual the touches.

This animation from the readme shows SwiftMonkey in action:

SwiftMonkey

You can find SwiftMonkey on Github here.

A nice library from random UI testing.


  • 9
  •  
  •  
  •  
  •  

Quick Chat – A Swift Based Real-Time iOS Chat App Using Firebase

  • 16
  •  
  •  
  •  
  •  

Quick Chat for iOS is a Swift source code example showing how to create a real-time chat app using Google’s Firebase form Haik Aslanyan.

Firebase is great for these types of apps because of its real-time database, and generous free tiers. Quick Chat features logins, real-time text messages, photos, and locations.

This animation from the readme shows Quick Chat in action:

Quick-Chat

You can find Quick Chat on Github here.

A nice example of an iOS chat app using Firebase.


  • 16
  •  
  •  
  •  
  •  

Files – An Open Source Swift Library For Working With Files And Folders

  • 6
  •  
  •  
  •  
  •  

Files is an open source Swift library from John Sundell for working with files ion iOS, macOS and tvOS.

Files provides a straightforward object-oriented API for moving, deleting, reading, and writing files and folders.

This snippet from the readme shows an example of file and folder deletion and creation:

let folder = try Folder(path: "/users/john/folder")
let file = try folder.createFile(named: "file.json")
try file.write(data: wrap(object))
try file.delete()
try folder.delete()

You can find files on Github here.

A great Swift library for working with files.


  • 6
  •  
  •  
  •  
  •  

SwiftRichString – A Swift Library That Simplifies Styling Attributed Strings

  • 12
  •  
  •  
  •  
  •  

SwiftRichString is an open source library submitted by Daniele Margutti that simplifies working with attributed strings.

With SwiftRichString you can style attributed strings using a clear type-safe syntax, combine attributed and non-attributed strings, and more.

This snippet from the readme shows how one could create styles, and apply them to an attributed string with SwiftRichString:

// Define your own used styles
let bold = Style("bold", {
  $0.font = FontAttribute(.CourierNewPS_BoldItalicMT, size: 30) // font + size
  $0.color = UIColor.red // text color
  $0.align = .center // align on center
})

let italic = Style("italic", {
  $0.font = FontAttribute(.CourierNewPS_ItalicMT, size: 25)
  $0.color = UIColor.green
})

let attributedString = ("Hello " + userName).set(style: bold) + "\nwelcome here".set(style: italic)

You can find SwiftRichString on Github here.

A great library for working with attributed strings.


  • 12
  •  
  •  
  •  
  •  

GLTableCollectionView – A Swift Component Scrolling/Sliding Content Like In The App Store

  •  
  •  
  •  
  •  
  •  

GLTableCollectionView is an open source Swift based user interface component from Giulio for creating sliding views similar to those seen in Netflix, Airbnb and the App Store.

GLTableCollectionView utilizes both UITableView and UICollectionView features cell recycling, headers for each table view and collection view row, storyboard compatibility and more. The table view, and each cell are fully customizable.

This animation from the readme shows GLTableViewCollection in action:
GLTableCollectionView

You can find GLTableCollectionView on Github here.

A nice component for displaying large amounts of categorized content.


  •  
  •  
  •  
  •  
  •