tl;dr I will go over the basics of a Keyboard Extension and then make a morse code keyboard using the new Application Extension API in iOS 8. It should take you about 20 minutes to go through all the steps. full code Overview A custom keyboard replaces the system keyboard for users who want capabilities such as a novel text input…
Tag Archive for ios8
How to make awesome UI components in iOS 8 using Swift and XCode 6
In Xcode 6 two new interface builder declaration attributes were introduced: IBInspectable and IBDesignable. IBInspectableexposes class properties in the interface builder Attribute Inspector, and IBDesignable updates the view in realtime! They are pure magic! I can’t wait to see what cool stuff you will make. tl;dr a short tutorial on how to use IBInspectable and IBDesignable with a video demo. It should take you around 10 minutes to go through all the steps. code on…
Swift Classes – Part 1
Creating a class To create a new class use the class keyword followed by the class name and a pair of braces. Inside the braces we can declare the class properties. class Point { var x = 0.0 // sets the default value of x to 0 var y = 0.0 // sets the default value of x to 0 } //…
Higher Order Functions: Map, Filter, Reduce and more
Introducing Closures One of the great features of Swift is a clean new syntax for first class functions / closures that replaced the quite confusing block syntax. So hopefully we won’t need something like fuckingblocksyntax for Swift. Closures are self-contained blocks of functionality that can be passed around and used in your code. In this article we’ll focus on closures that are…
How to make a simple tableview with iOS 8 and Swift
The first thing that came to mind when I saw Swift was TableViews. This is a step by step tutorial. tl;dr Full Code Create a new project Open Xcode 6, create a new “Single Page Application” and select Swift as the programming language. Add a table view property Open the ViewController.swift class and add a new tableview instance variable below the class…