StackViewController – Enhanced UIStackView Based Component For Forms And Static Lists

StackViewController is an open source component from Seed that builds on UIStackView adding a number of features for creating forms and lists.

Often UITableView is used for creating forms, but UITableView requires a large amount of boiler plate code, can be tedious when working with variable height content, and especially difficult if the layout needs to change.

StackViewController allows you to lay out views as simply as you would with UIStackView, but adds some features necessary for lists and forms such as scrolling support, autoscroll support for getting out of the way of the keyboard and customizable separator views.

Here’s an image showing a form created with StackViewController:

StackViewController

You can find StackViewController on Github here.

A nice component for displaying forms and static lists.

Original article: StackViewController – Enhanced UIStackView Based Component For Forms And Static Lists

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

Sensitive – Swift Library That Dramatically Simplifies Implementing Common Gesture Support

Sensitive is an open source Swift library from Igor Matyushkin that provides a very simple syntax for handling the most common gestures.

With Sensitive you don’t need to worry about utilizing UIGestureRecognizer but rather simply add the Sensitive gesture handlers to a UIView, set your callback, and configure some variables.

This example shows how one would set up a simple double tap gesture recognizer that changes the view color.:

let view = UIView()

view.onTap({ (tapGestureRecognizer) -> Void in
    // Handle tap on view
view.backgroundColor = .greenColor()
}) { (tapGestureRecognizer) -> Void in
    // Configure gesture recognizer
    tapGestureRecognizer.numberOfTouchesRequired = 1
    tapGestureRecognizer.numberOfTapsRequired = 2
}

Within sensitive are gesture handlers for tap, swipe, pan, pinch, and rotation gestures.

You can find Sensitive on Github here.

A nice simple way to handle gestures with a clean Swift syntax.

Original article: Sensitive – Swift Library That Dramatically Simplifies Implementing Common Gesture Support

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

Shelf 7

The little book shop was called Mr B’s Emporium of Reading Delights.

It was painted a very light cream colour, it was on the same street that I grew up on — but in a different city and country — and the cheerful Englishman behind the counter had the improbable name of Mr. Scotland.

The shop had an upstairs, and also a basement reached via another staircase hidden elsewhere. There were typewriters beside bookshelves, handwritten recommendations all around, and appropriately to its location in the eponymous spa town, one of the display tables was a full-sized claw-footed bath with boards across the top.

Continue reading “Shelf 7”

ATNavBarButton – iOS Component For Simpler Navigation Bar Buttons With More Customization Options

ATNavBarButton is an open source component from Apptality providing a UIBarButton subclass that simplifies changing bar button icons, and handling actions including a number of custom buttons.

ATNavBarButton includes 35 FontAwesome icons which are vector based so they will work on all iOS screen sizes (you can use your own images), you can easily change the colors of the nav bar buttons, use indicator views as your nav bar buttons, and more.

This code snippet shows how to set up some custom nav bar buttons:

– (void)viewDidLoad
{
[super viewDidLoad];
[self.navigationItem setLeftBarButtonItem:[ATNavBarButton setBarButton:ATNavBarButtonUser withDelegate:self]];
[self.navigationItem setRightBarButtonItem:[ATNavBarButton setBarButton:ATNavBarButtonSettings withDelegate:self]];
}

And the resulting nav bar:


ATNavBarButton

You can find ATNavBarButton on Github here.

A nice library for customizing navigation bar buttons.

Original article: ATNavBarButton – iOS Component For Simpler Navigation Bar Buttons With More Customization Options

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