GPUImage2 – Swift Library That Makes GPU Accelerated Video And Image Processing Easier

GPUImage 2 is the second version of the fantastic objective-c based GPUImage framework from Brad Larson written with Swift and now supporting not only Mac and iOS, but also Linux.

GPUImage 2 allows you to perform realtime video processing that utilizes the GPU giving dramatic performance improvements without having to write a ton of boilerplate code.

As the readme states:

The objective of the framework is to make it as easy as possible to set up and perform realtime video processing or machine vision against image or video sources. By relying on the GPU to run these operations, performance improvements of 100X or more over CPU-bound code can be realized. This is particularly noticeable in mobile or embedded devices. On an iPhone 4S, this framework can easily process 1080p video at over 60 FPS. On a Raspberri Pi 3, it can perform Sobel edge detection on live 720p video at over 20 FPS.

You can find GPUImage 2 on Github here.

A nice Swift update for the popular GPUImage library.

Original article: GPUImage2 – Swift Library That Makes GPU Accelerated Video And Image Processing Easier

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

Swift-Summary: 23 Swift Playgrounds For Learning Apple’s Swift Interactively

Swift-Summary from Juan Antonio Karmy is a collection of Xcode playgrounds for learning the basics of Swift.

Swift-Summary includes 23 lessons in total, is up to date with Swift 2.2, and the key advantage of using Swift summaries vs the documentation is that you can learn interactively.

Here is an image showing the playgrounds include with Swift-Summary:

Swift-Summary

You can find Swift-Summary on Github here.

A nice interactive way to learn the basics of Swift.

Original article: Swift-Summary: 23 Swift Playgrounds For Learning Apple’s Swift Interactively

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

SwiftGoo – Swift Code Example Using Core Image To Manipulate Images Like Goo

SwiftGoo is an open source example from Simon Gladman providing a simple tool with a Goo like image effect.

SwiftGoo is inspired by the Goo effect in Kai’s power tools from the early 90s and uses a Core Image warp kernel to move pixels based on a user’s touch.

This video shows SwiftGoo in action on the Mona Lisa:

You can find SwiftGoo on Github here.

You can read more about how the effect was created in just a few lines of code using CIWarpKernel on the FlexMonkey blog.

An interesting use of Core Image.

Original article: SwiftGoo – Swift Code Example Using Core Image To Manipulate Images Like Goo

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

BCColor – Swift Based Color Helper Library For Gradients, Getting Image Colors And Image And More

BCColor is an open source Swift based helper library from Boyce Chang providing an assortment of color helpers with a clean syntax.

BCColor includes helpers for:

  • Getting colors from an image
  • Setting colors to monchrome
  • Getting lighter/darker colors
  • Creating gradients
  • Colors from hex values

This snippet from the readme shows the basic usage of BCColor:

// Pick Colors From Image
let colors = image?.bc_getColors()

// Generate Momochrome Image
let monochromeImage = image?.bc_monochrome()

// Hex Color
UIColor.bc_colorWithHex("#5d13e2", alpha: 1)

// Gradient Color
UIColor.bc_gradientColor(CGPointMake(0.0, 0.0), endPoint: CGPointMake(1.0, 1.0), frame:frame, colors: [UIColor.redColor(), UIColor.blueColor()])

UIColor.bc_radialGradientColor(frame, colors: [UIColor.blueColor(), UIColor.greenColor()])

BCColor

You can find BCColor on Github here.

A nice Swift based color helper library.

Original article: BCColor – Swift Based Color Helper Library For Gradients, Getting Image Colors And Image And More

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

Open Source iOS Tool So You Can Easily Check Your UI Against Design Specs

Peek is an open source iOS library from Shaps M providing you with detailed info about the currently displayed interface you to check an app’s user interface against a specification guide.

The tool works by scanning all your views on-screen, and then overlaying the view with a Peek view containing detailed information about the user interface.

This video shows Peek in action.

You can read more about Peek on Shaps blog.

You can find Peek on Github here.

A nice tool for working on an app’s UI.

Original article: Open Source iOS Tool So You Can Easily Check Your UI Against Design Specs

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

Open Source iOS Tools For Automatic Memory Leak Detection

Facebook has released 3 objective-c based tools for automatic memory leak detection on iOS – FBRetainCycleDetector, FBAlloactionTracker and FBMemoryProfiler.

FBRetainCycleDetector finds retain cycles, FBAllocationTracker provides introspection of Objective-C objects, and FBMemoryProfiler uses FBRetainCycleDetector and FBAllocationTracker allowing you to browse objects and view their memory usage over time.

Here’s an image from the FBMemoryProfiler showing it in action:

FBMemoryProfiler

You can read more about these tools on the Facebook code site.

You can find FBMemoryProfiler on Github here.

You can find FBRetainCycleDetector on Github here.

You can find FBAllocationTracker on Github here.

A nice set of tools for automatic memory-leak detection.

Original article: Open Source iOS Tools For Automatic Memory Leak Detection

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