TNInfoBubble – Prisma app info bubble component

I was using the Prisma app (like half of the world probably) and noticed the info bubble when you swipe with your fingers to adjust the strength of the effect.

This is my implementation (written in Swift) of this component, which comes with the Prisma look out of the box.

Continue reading TNInfoBubble – Prisma app info bubble component

TNSwiftyCheckboxGroup, create checkbox groups in Swift

TNCheckboxGroup

Last year I published TNCheckboxGroup for Objective-C, but I had a few comments it didn’t work when using with Swift. So I just published a Swift version on Github. This versions leverages UICollectionView to handle big sets of checkboxes. TNSwiftyCheckboxGroup, create checkbox groups in Swift.

Continue reading TNSwiftyCheckboxGroup, create checkbox groups in Swift

TNImageSliderViewController – an image slider gallery for Swift

The problem

Too many times a client has asked to add a sliding image gallery to an iOS app, so I wrapped it up in a little component. You can download it from GitHub.

Introducing an image slider gallery for Swift

I took some time to write this component, so it is easy to manage image slider galleries.  First I looked around on the web, but there was nothing that really fitted my needs, so the best thing to do in such a case is write it yourself :-).

Prerequisites

  • Xcode
  • iOS8+

Features

  • Horizontal scrolling
  • Vertical scrolling
  • Page control to indicate how many photos are in the list
  • Works in both orientations (landscape, portrait)
  • Cell reuse (works on UICollectionVIew)

Download

You can download the project on GitHub.  If you have any questions, just ask it on  Twitter, put a comment below or open an issue on GitHub.

The component is also available via CocoaPods.

TNCheckBoxGroup – Custom checkboxes for Objective-C

There is now also a Swift version available: read about it here.

A few weeks back I pushed some code to GitHub to easily create checkboxes in Objective-C, but there were some limitations to the class. I’ve now updated the class so you can work with checkbox groups, like TNRadioButtonGroup.

Continue reading TNCheckBoxGroup – Custom checkboxes for Objective-C

List of countries and capitals of the world (json, xml, csv)

For the upcoming release of iCapital 2.0 I needed a list of all the countries and capitals of the world in json format. I searched the web, but couldn’t find a proper solution until I found these lists on GitHub.

Sadly they only contained the countries of the world, so on a boring Sunday night, I’ve extended the list with all the capitals for those countries!

Continue reading List of countries and capitals of the world (json, xml, csv)