Swift 3 Tutorial In this Swift 3 tutorial, we’ll focus on how beginners may approach going from complete beginner to having a basic grasp on Swift, and we’ll be working with Swift 3. We chose to write this tutorial because newcomers will find many tutorials out there that are out of date, so it’s not…
Tag: programming
SiriKit Resolutions with Swift 3 and iOS 10 – SiriKit Tutorial (Part 2)
SiriKit Resolutions with Swift 3 in iOS 10 – SiriKit Tutorial (Part 2) This tutorial written on June 20th, 2016 using the Xcode 8 Beta 1, and is using the Swift 3.0 toolchain. This post is a follow-up in a multi-part SiriKit tutorial. If you have not read part 1 yet, I recommend starting there….
Siri Integration in iOS 10 with Swift – SiriKit Tutorial (Part 1)
Siri integration on iOS 10 – Swift Tutorial This tutorial written on June 13th, 2016 using the Xcode 8 Beta 1, and is using the Swift 3.0 toolchain. Get Xcode 8 set up for iOS 10 and Swift 3 compilation. If you have not yet downloaded Xcode 8 Beta 1, please do so here. (Optional)…
Adding IBInspectable to a superclass in Swift
Adding IBInspectable to a UICollectionViewCell subclass One very useful feature I find is to add a IBInspectable background image to my views. In an entertainment app I’m currently building there is a designable cell that looks like this: @IBDesignableclass TrailerCollectionViewCell: MediaCollectionViewCell { @IBOutlet weak var lengthLabel: UILabel! @IBInspectable weak var bgImage: UIImage! { didSet { imgView.frame = self.bounds self.addSubview(imgView) imgView.image =…
Developing tvOS Apps for Apple TV [Part 2]
Looking for some help building your Apple TV tvOS App? I’m available for consulting and development, contact me. This is part 2 of the tvOS tutorial. If you haven’t gone through part 1 yet, I suggest you run through that first. Adding Interactivity In the first section we created a simple TVML document with a…
Swift 2 – What’s new
Monday Apple announced Swift 2, and just about everything announced is an extremely welcome change. This post is a summary of Chris Lattner’s discussion in the WWDC video “What’s new in Swift”. Now, let’s run through them… Fundamentals enums can now be printed to the console and show the actually value instead of just (enum…
Open Source Swift – A Look At The Top Swift Repositories
Github, the most popular open source repository for open source software, offers a feature that let’s us view repositories by language. In this post, I want to dissect some of the most popular Swift repositories as of June 5th, 2015. So, let’s kick it off with the most starred Swift repository, Alamofire. Alamofire Alamofire is…
Functional Programming in Swift
Thoughts on Functional Programming in Swift Like most of you, I have to use Objective-C at my day job. I could only craft my Swift skills at night. Swift is not a purely functional language. It can be use imperatively because all frameworks from Apple are written in Objective-C at the time of writing. However,…
Should I learn Objective-C or Swift first?
“Should I learn Objective-C or Swift first?” I get asked this question a lot. Sometime’s people will also ask about learning C or C++ first. So, I want to take a moment and give you the low-down on how I feel as a professional iOS & Mac developer, six months after Swift’s introduction. If this…
Core Data in Swift Tutorial (Part 1)
This post compatible with Xcode 6.3 Beta, Updated on February 16, 2015 Don’t have 6.3 yet? Make sure to download it here using your iOS Developer account. Core Data is the de facto standard way to persist and manage data in both iPhone and Mac applications, and with Swift it’s a bit easier. So it’s…