Get Updates By E-mail 

Swift

Swift programming language libraries, components, tutorials and news.

Dispatch – A Lightweight Flux Inspired Implementation In Swift

  •  
  •  
  •  
  •  
  •  

Dispatch is an open source library submitted by Alex Umbergo providing a Flux-like single direction data flow architecture in Swift.

As the readme states:

Dispatch eschews MVC in favour of a unidirectional data flow. When a user interacts with a view, the view propagates an action through a central dispatcher, to the various stores that hold the application’s data and business logic, which updates all of the views that are affected.

Dispatch works well the previously mentioned the Render library which provides a React-inspired approach for writing Swift UIs that works well with Render, and an example to-do application is included in the project using both Dispatch and Render.

You can find Dispatch on Github here.

Dispatch along with Render provide a nice approach for interface programming in Swift.


  •  
  •  
  •  
  •  
  •  

Transition – A Swift Library That Simplifies Creating View Transitions

  • 10
  •  
  •  
  •  
  •  

Transition is an open source library from Touchwonders that simplifies the creation of view transitions.

With transition you simply define the transition and interaction and Transition ties it all together without having to deal with all the delegates, and interaction phases. A nice set of examples are included showing different transitions created using Transition.

This animation from the readme shows Transition in action:

Transition

You can find Transition on Github here.

A nice library for developing view transitions.


  • 10
  •  
  •  
  •  
  •  

SwiftySound – A Simple Swift Library For Playing Sounds

  •  
  •  
  •  
  •  
  •  

Swifty Sound is an open source Swift library submitted by Adam Cichy that simplifies working with sounds in Swift.

Swifty provides a simple syntax for playing/stopping sounds, looping sounds a specific number or unlimited times, and variables for enabling and disabling sounds.

This snippet from the readme shows how to play a sound file and loop three times:

Sound.play(file: "dog", fileExtension: "wav", numberOfLoops: 3)

You can find SwiftySound on Github here.

A nice library for easily playing audio.


  •  
  •  
  •  
  •  
  •  

YNExpandableCell – A Swift UI Component For Easily Creating Expandable Table View Cells

  • 9
  •  
  • 2
  •  
  •  

YNExpandableCell is an open source Swift UI component submitted by Seungyoun Yi that allows you to easily create expandable table view cells.

YNExpandableCell can be used in storyboards or in code, and can contain whatever view content you like. The Cells are expanded using a button with a neat rotating animation.

This animation from the readme shows YNExpandableCell in action:

YNExpandableCell

You can find YNExpandableCell on Github here.

A great component for easily creating expandable cells.


  • 9
  •  
  • 2
  •  
  •  

CFAlertViewController – An Easy To Use Swift UI Component For Alert Views And Action Sheets

  • 10
  •  
  •  
  •  
  •  

CFAlertViewController is a Swift based open source component from Crowdfire that allows you to create highly customizable alert and action sheets with adaptive UI support.

CFAlertViewController allows fr easy styling with extra header and footer views so you can make highly unique action sheets. You can turn on and off a blurring effect, and there are several built-in styles.

This animation from the readme shows CFAlertViewController in action:

CFAlertViewController

You can find CFAlertViewController on Github here.

A great component for creating custom action and alert sheets.


  • 10
  •  
  •  
  •  
  •