Hello, welcome to by tutorial reference for swift codes that I did while learning Swift for iOS development. Here you can find some great turorials on various swift topics and some notes to follow them alog.
This tutorial is an introduction to how the Core Bluetooth works. I used a particular bluetooth device in order to experiment with the peripheral, manager, connection, characteristics, feedback and services to interact with the gadget.
The code in the project shows how an User Interface could be built using only Swift 3, with no XML from the storyboard. The video reference used here was by Brian Voong and (THIS)[Swift: Lets Build YouTube - Home Feed: UICollectionView, AutoLayout ...] as the YouTube playlist followed. Keep in mind that the videos are written in Swift 2 and some commands had to be updated.
Create a session, consume an API and manually parse the received JSON.
This code was made while reading the closures section from the official Swift 3 documentation from Apple.
https://github.com/miguelrochajr/SwiftTutorials/tree/master/unwrapping-optionals.playground