The Swift 3 Cookbook - Hacking with Swift Knowledge Base
4.7 (51 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,388 students enrolled
Wishlisted Wishlist

Please confirm that you want to add The Swift 3 Cookbook - Hacking with Swift Knowledge Base to your Wishlist.

Add to Wishlist

The Swift 3 Cookbook - Hacking with Swift Knowledge Base

Example code you can take and re-use in your own projects - What the Apple docs should be
4.7 (51 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,388 students enrolled
Created by Stephen DeStefano
Last updated 1/2017
English
Current price: $10 Original price: $100 Discount: 90% off
5 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 4.5 hours on-demand video
  • 271 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Navigate through hundreds of code examples very quickly to get the code solution you need
View Curriculum
Requirements
  • You should already be familiar with Swift and the app building process
Description

This course material is produced from the "Hacking with Swift" Knowledge Base, written and authored by the award winning Swift programmer, Paul Hudson, and these videos were made with his permission and support.

 Paul recieved high praise from the creator of the Swift language,Chris Lattner, for his outstanding method of teaching, and series of Swift tutorials. And working together with iOS developer Steve DeStefano, the Hacking with Swift series of programming training videos are simply the fastest way to learn how to code in the Apple eco-system.

Check out all of Paul Hudson's Swift tutorials and books at HackingWithSwift - and go from beginner to pro in a very short time.

• This course is a huge compilation of Swift 3 coding solutions, neatly organized in sections for fast reference when you need it. Each lecture will highlight example code in a brief video, and demonstrate how to use it correctly, as well as best practices for its implementation.

Lets face it, there are thousands of Swift classes and methods, and no one can be expected to know or remember even a portion of them. And the Apple docs are greatly lacking in code examples that we can use...so we turn to coding sites, to grab bits and pieces of code that we can use. Wouldn't it be nice to have a resource of example code that is downloadable (lectures and the code text files), that you can refer to whenever you need it? As well as add to it to your own ever growing Swift library? Well here it is, The Swift 3 Cookbook. Its a great compilation of example code that you can use right away, when you need it. All written and tested in Swift 3, by the award winning programmer, Paul Hudson,

Each lecture is downloadable, as well as its text file -  so you can add to or create your own Swift docs.

• The examples are dynamically typed in, for a better user experience.

Recorded in hi resolution for maximum clarity

• Anyone who writes Swift code needs this library in their coding toolbox for fast reference and usage. 

• This is an ever growing Swift library with more example code being added. 

Featuring example code by the award winning Swift programmer Paul Hudson - HackingWithSwift dot com

• Please note: This Cookbook course will not teach you the Swift language, or how to code, You should already have completed Paul Hudson's tutorials at Hacking With Swift dot com, or the Hacking With Swift Course here on Udemy, or have written your own existing Swift apps.

What the Swift Apple Docs should be.

Who is the target audience?
  • This course was designed with the developer in mind, as well as the student who is learning and has a good grasp of Swift and Cocoa Touch
Students Who Viewed This Course Also Viewed
Curriculum For This Course
274 Lectures
04:40:45
+
Paul Hudson and Hacking With Swift - Introduction
2 Lectures 03:58

Hacking With Swift Frequent Flyer Club
02:06
+
Arrays
11 Lectures 06:56
How do you create multi dimensional arrays?
01:13

How to count objects in a set using NSCountedSet
01:04

How to enumerate items in an array
00:23

How to find an item in an array using indexOf()
00:16

How to join an array of strings into a single string
00:25

How to loop through items in array
00:27

How to loop through an array in reverse
00:56

How to shuffle an array in iOS 8 and below
00:26

How to shuffle an array in iOS 9 using GameplayKit
00:30

How to sort an array using sort()
00:54

How to tell if an array contains an object
00:22
+
CALayer
6 Lectures 05:48
How to add a border outline color to a UIView
00:29

How to create keyframe animations using CAKeyframeAnimation
01:32

How to draw color gradients using CAGradientLayer
01:24

How to draw shapes using CAShapeLayer
00:37

How to emit particles using CAEmitterLayer
01:04

How to round the corners of a UIView
00:42
+
Core Graphics
12 Lectures 07:46
How to calculate the distance between two CGPoints
00:47

How to calculate the Manhattan distance between two CGPoints
00:33

How to compare two CGRects with equalTo()
00:22

How to draw a circle using Core Graphics- CGContextAddEllipselnRect
00:37

How to draw a square using Core Graphics CGContextAddRect()
00:47

How to draw a text string using Core Graphics
00:24

How to draw lines in Core Graphics with CGContextMoveToPoint() and CGContextAddL
00:59

How to find a scale from a CGAffineTransform
00:15

How to find the rotation from a CGAffineTransform
00:14

How to find the translation from a CGAffineTransform
00:14

How to render a PDF to an image
00:47

How to use Core Graphics blend modes to draw a UIImage differently
01:47
+
Games
14 Lectures 10:08

How to add pixel perfect physics to an SKSpriteNode
00:29

How to change SKScene with a transition - presentScene()
00:37

How to color an SKSpriteNode using colorBlendFactor
00:37

How to create 3D audio sound using SKAudioNode
01:18

How to create shapes using SKShapeNode
00:31

How to emit particles using SKEmitterNode
01:00

How to find a touches location in a node using location(in)
00:41

How to generate a random number with GKRandomSource
01:05

How to roll a dice using GameplayKit and GKRandomDistribution
00:38

How to run SKActions in a group
00:29

How to run SKActions in a sequence
00:27

How to stop an SKPhysicsBody responding to physics using its isDynamic property
00:45

How to write text using SKLabelNode
00:45
+
Language
40 Lectures 37:50
Fixing "Ambiguous reference to member when using ceil or round"
01:06

Fixing "Class ViewController has no initializers"
01:19

What are property observers
00:22


How to check the Swift version at compile time
00:38

How to compare two tuples for equality
00:32

How to convert a float to a CGFloat
00:30

How to convert a float to an int
00:17

How to convert a string to a double
00:14

How to convert a string to a float
00:14

How to convert a string to an int
00:18

How to convert a string to an NSString
00:42

How to convert an int to a float
00:18

How to convert an int to a string
00:18

How to convert an NSRange to a Swift string index
00:30

How to create an Objective C bridging header to use code in Swift
01:02

How to delay execution of code using the defer keyword
00:36

How to find the maximum of three numbers
00:15

How to find the maximum of two numbers
00:09

How to find the minimum of three numbers
00:14

How to find the minimum of two numbers
00:12

How to force your program to crash with assert()
01:28

How to install a beta version of swift
03:45

How to print debug text in Swift
00:18

How to unwrap an optional in swift
00:54

How to use compiler directives to detect the iOS simulator
00:47

How to use the try/catch in Swift to handle exceptions
01:36

Tips for android developers switching to Swift
02:38

Using stride() to loop over a range of numbers
01:09

What are lazy variables?
03:21

What does unowned mean?
00:48

What does weak mean?
01:24

What is a CGFloat?
00:26

What is a closure?
02:11

What is a delegate in iOS?
00:59

What is a nib?
00:45

What is a protocol?
01:22

What is a selector?
00:47

What is the nil coalescing operator?
01:01

What is trailing closure syntax?
01:16
+
Libraries
3 Lectures 07:45
How to get a Cover Flow effect on iOS
01:48

How to make empty UITableViews look more attractive using DZNEmptyDataSet
03:03

How to parse JSON using SwiftyJSON
02:54
+
Location
6 Lectures 09:16
How to add a button to an MKMapView annotation
01:08

How to add an MKMapView using MapKit
00:42

How to detect iBeacons
04:33

How to find directions using MKMapView and MKDirectionsRequest
01:20

How to make an iPhone transmit an iBeacon
01:07

How to request our users location only ones using requestLocation
00:26
+
Media
18 Lectures 16:23

How to choose a photo from the camera roll using UIImagePickerController
00:49

How to convert text to speech using AVSpeechSynthesizer, AVSpeechUtterance and A
00:40

How to create a barcode
00:21

How to create a PDF417 barcode
00:23

How to create a QR code
00:31

How to filter images using Core Image and CIFilter
00:35

How to highlight text to speech words being read using AVSpeechSynthesizer
00:50

How to make resizable images using resizableImageWithCapInsets()
00:48

How to play sounds using AVAudioPlayer
01:32

How to record audio using AVAudioRecorder
03:12

How to record user videos using ReplayKit
01:12

How to render a UIView to a UIImage
00:22

How to save a UIImage to a file using UIImagePNGRepresenttation
01:07

How to scan a barcode
00:44

How to scan a QR code
00:51

How to turn on the camera flashlight to make a torch
00:54

UIImageWriteToSavedPhotosAlbum() how to write to the iOS photo album
01:02
+
Strings
20 Lectures 10:16
How to capitalize words in a string using capitalizedString
00:15

How to convert a string to lowercase letters
00:07

How to convert a string to uppercase letters
00:09

How to detect a URL in a String using NSDataDetector
00:37

How to get the length of a string
00:17

How to load a string from a file in your bundle
00:14

How to load a string from a website URL
00:47

How to loop through letters in a string
00:21

How to measure a string
00:15

How to parse a sentence using NSLinguisticTagger
00:52

How to repeat a string
00:20

How to reverse a string using reverse()
00:16

How to save a string to a file on disk with write(to)
01:01

How to specify floating-point precision in a string
00:52

How to split a string into an array - componentsSeperatedByString()
00:20

How to test localization by setting a debug locale and double length pseudo-lang
00:54

How to trim whitespace in a string
00:32

How to use string interpolation to combine strings, integers and doubles
00:36

NSRegularExpression - how to match regular expressions in strings
01:02

Replacing text in a string using stringByReplacingOccurencesOfString()
00:29
5 More Sections
About the Instructor
Stephen DeStefano
4.6 Average rating
838 Reviews
7,856 Students
9 Courses
iOS / macOS Developer / Swift Instructor

My name is Steve DeStefano, an iOS instructor, and working together with Paul Hudson, the award winning Swift programmer, i've transfered his best selling iOS / macOS / watchOS, and other books into lecture style courses. So your getting the best instruction available for everything Apple. Paul's teaching method has been hailed as one of the best ways to learn how to code in the shortest amount of time, and he has received high praise from the creator of the Swift language, Chris Lattner. I offer a unique way of presenting Paul's material, which is with the help of callouts, highlighting and graphics, all to make it easy to follow the path of the code, and understand the content. If your think this might be too difficult, think again, and then come code along with Paul and me, and see how easy it is to learn Swift and app building. Go from a newbie to an Apple developer in a short amount of time, and see your own unique creations in the App Sore, and in the hands of thousands of people.