Swift Library For Emulating 3D Touch On Older iOS Devices

Last week I mentioned a tutorial on using 3D touch on a newer iOS device to create a weighing scale.

Here’s a Swift library that allows you to mimic 3D touch on the millions of pre-iPhone 6+ devices called PeekPop.

PeekPop monitors major changes in UITouch’s majorRadius value to figure out if a user is pressing harder on their phone. PeekPop is almost identical to Apple’s 3D touch APIs so you can add backwards compatibility to apps that utilize 3d touch.

PeekPop works on devices that can utilize iOS 8+.

PeekPop

You can find PeekPop on Github here.

A nice way to emulate 3D touch on older iOS devices.

Original article: Swift Library For Emulating 3D Touch On Older iOS Devices

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Swift Component Providing An Instagram Inspired Photo Browser And Camera Control

Fusuma is an open source Swift component providing an alternative to UIImagePickerController with an Instagram inspired photo browser, along with a built-in full featured camera feature.

Fusuma can be implemented within a few lines of code and the camera roll has a nice image preview, and feature with cropping support, and the ability to take square sized pictures. You can change the colors of the user interface.

Here are a couple of images from the readme showing Fusuma:
Fusuma

You can find Fusuma on Github here.

A nice UIImagePickerController alternative.

Original article: Swift Component Providing An Instagram Inspired Photo Browser And Camera Control

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Swift Library For Easily Encoding Classes, Structs, And Enums To JSON Data

Wrap is a Swift library from John Sundell easily encode Swift classes, structs or enums as JSON data.

The key advantage of Wrap is the simplicity, and for more advanced objects that may not have simple data types  you can create custom keys, and key types.

This code snippet from the readme shows how one could encode a simple object:

struct User {
    let name: String
    let age: Int
}

let user = User(name: "John", age: 28)

let dictionary: [String : AnyObject] = try Wrap(user)

This would produce the Dictionary with the data:

{
    "name": "John",
    "age": 28
}

You can find Wrap on Github here.

A nice simple way to encode Swift data as JSON.

Original article: Swift Library For Easily Encoding Classes, Structs, And Enums To JSON Data

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Tutorial: Migrating An Objective-C App To Swift

This tutorial is a nice guide/post-mortem from Skyscanner explaining how they were able to migrate their apps from Swift to Objective-C.

Specifically the tutorial covers how to work with your objective-c code from Swift, and your Swift code in Objective-C. Also covered is how to test your code that utilizes both languages.

You can find the tutorial over on the Code Voyagers blog.

Also be sure to check out the earlier guide on transitioning from objective-c to Swift.

A nice guide for those looking to use Swift with a legacy objective-c app.

Original article: Tutorial: Migrating An Objective-C App To Swift

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Open Source Swift Component For Star Ratings Views That Can Be Customized In Interface Builder

STRatingControl is an open source Swift based user interface component for adding a star rating control to your iOS apps from Shukhrat Tursunov.

STRatingControl allows for easy customization which works within interface builder. You can change the image used as the stars, the spacing between stars, the current rating, and the max rating within interface builder.

This image from the readme showing STRatingControl within interface builder:

STRatingControl

You can find STRatingControl on Github here.

A nice easy to implement and customize star rating control.

Original article: Open Source Swift Component For Star Ratings Views That Can Be Customized In Interface Builder

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.