Deprecator

Years ago at Togethera we built and open sourced our deprecation framework for iOS. It provided a way to remotely deprecate old versions of an app. Deprecator supported hard and soft deprecations.

Soft deprecations can be used to just let the user know that the latest version of the app has some new awesome feature and hard deprecations are used to force the user to upgrade. It's not good practice, but it is useful to have as a backup incase of something going badly wrong.

The framework was left untouched and didn't work with any new versions of Swift so I have now brought it back to life! You can find it on Github.

Segmented Control

Screencast 2018-04-02 at 1.46.59 pm.gif

I've just released SegmentedControl; a small UI control for iOS.

 

Install

In your Cartfile:

github "reddavis/SegmentedControl"

 

Example

let segmentedControl = SegmentedControl() 
segmentedControl.tintColor = UIColor.blue 
segmentedControl.addButton(title: "Button A") 
segmentedControl.addButton(title: "Button B") 
segmentedControl.addButton(title: "Button C") 
segmentedControl.addTarget(self, action: #selector(self.segmentedControlValueDidChange(_:)), for: .valueChanged) 
self.view.addSubview(segmentedControl)

Swift Framework - TableData v1

As mentioned in my Year in Review post from back in December, one of my aims of 2018 is to open source more code.

I’ve built a few private libraries over the years that I use in most of my projects. I figured releasing these would be a good place to start. The first one is the rather bland named; Table Data.

Table Data is a simple framework for building out UITableViews. I use it a lot when building preferences or settings screens.

Telegram Bot Builder

 
9ff2f2f01c4bd1b013.png
 

TLDR; Introducing Telegram Bot Builder

I've built a few Telegram bots recently using Zapier and Chatfuel

Chatfuel used to work pretty well, though it always felt like Telegram was an after thought (just look at their homepage). Recently it stopped letting me create new bots. After asking support they said they had no ETA on fixing the issue. Two weeks later I gave up waiting and built Telegram Bot Builder; A more versatile Chatfuel.