Open Source Component For Displaying Numbers With A Neat Morphing Effect

NumberMorphView by Abhinav Chauhan allows you to display numbers with a neat morphing effect between each number.

NumberMorphView is great for clocks and countdowns, but you can morph between any two digits, and there are a number of effects that can be applied on the morphing animation such as spring, bounce, and overshoot.

You can use NumberMorphView within interface builder or code.

This image from the readme shows a simple clock created with NumberMorphView:

NumberMorphView

You can find NumberMorphView on Github here.

A neat component for displaying numbers with a morphing transition.

Original article: Open Source Component For Displaying Numbers With A Neat Morphing Effect

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

Swift Library That Uses Protocols To Dramatically Simplify Handling Common Gestures

Standard Template Protocols is an open source Swift library submitted by Chris providing a number of protocols for many common tasks allowing you to dramatically clean up your code.

As stated in the submission:

Too often we find ourselves locked into deep and complicated subclassing trees just to factor out common behavior in our apps. This makes our code inflexible, hard to navigate, and contain too many dependencies. Using protocols for common features allows us to create default behavior that is additive without complicated subclassing.

Standard Template Protocols tries to solve these flaws, starting with common patterns around gesture recognizers.

Included within gesture recognizable are Swift protocols for moving, pinching, rotation, tapping, and force touch.

 

This snippet from the readme shows how one could make a view rotatable with Standard Template Protocols:

class MyRotatableView : UIView, Rotatable {
    init(frame: CGRect) {
        super.init(frame: frame)
        self.makeRotatable()
    }
}

And to perform actions simply implement the appropriate method:

func didStartRotating()
func didFinishRotating(velocity:CGFloat)
func minimumRotation() -> CGFloat
func maximumRotation() -> CGFloat
func transformWithRotation(rotation:CGFloat, lastRotation:CGFloat, velocity:CGFloat) -> CGAffineTransform
func animateToRotatedTransform(transform:CGAffineTransform)

 

You can find Standard Template Protocols on Github here.

A nice Swift library that utilizes protocols to simplify many common tasks.

Original article: Swift Library That Uses Protocols To Dramatically Simplify Handling Common Gestures

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

Open Source Tool For Generating Swift/Objective-C Viper Module Skeletons

Earlier this week I mentioned a nice guide on different software architectures which provides a nice overview of different software architectures commonly mentioned in the iOS realm including the VIPER architecture.

Here’s an open source tool submitted by Sameh Mabrouk that allows you to generate VIPER module skeletons called ViperCode.

Viper can generate both module, and unit test files, operates as a separate app so it can be used with both Xcode and AppCode, and generates either Swift or Objective-C code.

This is the file structure generated by ViperCode:

.objc
+– DataManager
| +– VIPERDataManager.h
| +– VIPERDataManager.m
+– Interactor
| +– VIPERInteractor.h
| +– VIPERInteractor.m
+– Presenter
| +– VIPERPresenter.h
| +– VIPERPresenter.m
+– ViewController
| +– VIPERViewController.h
| +– VIPERViewController.m
+– WireFrame
| +– VIPERWireFrame.h
| +– VIPERWireFrame.m
+– Protocols
| +– VIPERProtocols.h
.objc tests
+– Interactor
| +– VIPERInteractorTests.m
+– Presenter
| +– VIPERPresenterTests.m
+– ViewController
| +– VIPERViewControllerTests.m
+– WireFrame
| +– VIPERWireFrameTests.m
.swift
+– DataManager
| +– VIPERDataManager.swift
+– Interactor
| +– VIPERInteractor.swift
+– Presenter
| +– VIPERPresenter.swift
+– ViewController
| +– VIPERViewController.swift
+– WireFrame
| +– VIPERWireFrame.swift
+– Protocols
| +– VIPERProtocols.swift
.swift tests
+– Interactor
| +– VIPERInteractorTests.swift
+– Presenter
| +– VIPERPresenterTests.swift
+– ViewController
| +– VIPERViewTests.swift
+– WireFrame

| +– VIPERWireFrameTests.swift

ViperCode

You can find ViperCode on Github here.

A nice tool for generating Viper code.

Original article: Open Source Tool For Generating Swift/Objective-C Viper Module Skeletons

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

Swift iOS UI Component For Stylish List Selection With Auto-Complete And Swiping

Some time ago I mentioned the RAMAnimatedTabBar component for animated tab bars, and the RAMPaperSwitch component which allows you to fill a view with a nice circular animation when the user turns on a switch from RAMotion.

Here’s another excellent open source UI component from RAMotion providing a very stylish way for users to choose from a list supporting both text entry, and gestures called RAMReel.

RAMReel presents the user with a list and provides autocompletion options based on entered text, and the user can make their desired choice using a sliding gesture.

RAMReel uses UICollectionView and supports themeing allowing you to easily change the colors, and fonts.

Here’s an animation from the readme showing RAMReel in action:

RAMReel

You can find RAMReel on Github here.

A nice UI Component for list selection.

Original article: Swift iOS UI Component For Stylish List Selection With Auto-Complete And Swiping

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

Tutorial: The Basics Of CPU And Memory Profiling With Xcode Instruments

Using Xcode instruments can be somewhat daunting and Kevin Kzmierczak has written a nice guide explaining some of the basics of using instruments entitled “What every iOS Developer should be doing with Instruments”.

In the tutorial covers a number of topics including:

– When to profile a project
– How to profile the CPU with the time profiler
– Understanding the different options when profiling the CPU
– Utilizing the memory profiler
– Finding memory leaks with the profiler

You can find the tutorial over on Kevin Kazmierczak’s blog.

A nice guide to the basics of profiling an app with Xcode’s instruments.

Original article: Tutorial: The Basics Of CPU And Memory Profiling With Xcode Instruments

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

FBI’s iPhone unlocking tool does NOT work on iPhone 5s or newer devices

FBI director James Comey says that the law enforcement agency purchased a tool from third party to unlock the iPhone 5c of Syed Farook, one of the San Bernardino shooter and that the method works…

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]

Xcode Code Generation Tool With A Clean And Readable Syntax Based On Liquid Templates

Generamba is a code generation tool for Xcode projects called Generamba submitted by Egor Tolstoy.

Generamba was created as an alternative to using Xcode templates, and utilizes the liquid template engine. This gives Genaramba a clean syntax similar to Smarty-like templates with support for loops, partials, conditionals, and more.

This example from Egor’s blog shows a comparison between Xcode templates, and using Generamba for code generation.

An Xcode template:

//
//  <strong><em>VARIABLE_viperModuleName______FILENAME</em></strong>
//  <strong><em>PROJECTNAME</em></strong>
//
//  Created by <strong><em>FULLUSERNAME</em></strong> on <strong><em>DATE</em></strong>
//  Copyright <strong><em>YEAR</em></strong> <strong><em>ORGANIZATIONNAME</em></strong>. All rights reserved.
//

#import "___VARIABLE_viperModuleName:identifier___Interactor.h"
#import "___VARIABLE_viperModuleName:identifier___InteractorOutput.h"

@implementation ___VARIABLE_viperModuleName:identifier___Interactor

#pragma mark – ___VARIABLE_viperModuleName:identifier___InteractorInput

@end

The same template coded with Generamba:

//
//  {{ module_info.name }}{{ module_info.file_name }}
//  {{ module_info.project_name }}
//
//  Created by {{ developer.name }} on {{ date }}.
//  Copyright {{ year }} {{ developer.company }}. All rights reserved.
//

#import "{{module_info.name}}Interactor.h"
#import "{{module_info.name}}InteractorOutput.h"

@implementation {{ module_info.name }}Interactor

#pragma mark – {{ module_info.name }}InteractorInput

@end

The features of Generamba include:

– Works with Xcode projects (.xcodeproj) out of the box
– Support for Objective-C and Swift
– Powered by the liquid template engine from Shopify
– Flexible Template management
– Easy integration with Cocoapods

You can read more about Generamba on Egor Tolstoy’s blog.

You can find the Generamba project on Github here.

A nice alternative to using Xcode templates for code generation.

Original article: Xcode Code Generation Tool With A Clean And Readable Syntax Based On Liquid Templates

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