Profile cover photo
Profile photo
Coding Explorer
13 followers -
Learning more about programming and taking you along for the ride.
Learning more about programming and taking you along for the ride.

13 followers
About
Posts

Post has attachment
Ideally, errors should never occur. File we need should always be available and networks should always be present and reliable. Unfortunately this reality is not ideal and we have to deal with the consequences. Thankfully the Swift team included a great way to handle these deviations from the ideal in Swift 2. Swift Error Handling lets us quickly and easily warn the compiler whether a function can throw an error, actually throw it, and handle it in whatever way seems appropriate.

Check out my new post about Handling Errors in Swift 2.2
Add a comment...

Post has attachment
An NSURL is how you describe the location of a file or directory in your Swift App. You can also easily add or delete path components with a few methods. Learn how to create and Modify an NSURL in your Swift App!
Add a comment...

Post has attachment
Learn how to use Watch Connectivity to share data between your #iOS  and #watchOS  2 apps in #Swift  !
Add a comment...

Post has attachment
Learn how to make a #watchOS 2 Hello World App in #Swift
Add a comment...

Post has attachment
With all of the new and awesome APIs that come out every year for each successive iOS version, it can be tempting to just drop support for the previous versions of iOS, and just go completely to the new stuff.  Of course though, we usually can’t do that for many reasons.

With the arrival of Swift 2, we have received great language-level support to check for API availability for our #iOS , #OSX , and even watchOS apps.  Check out my new post about API Availability Checking in #Swift  2.
Add a comment...

Post has attachment
With #Swift  2, now you can extend protocols with Protocol Extensions just like you could with other named types like Classes, Structures, and enumerations.  You can even provide default implementations for the methods defined in those protocol extensions!

Learn more in the new post — Protocol Extensions in Swift 2.
#iOS  
Add a comment...

Post has attachment
Swift 2 brought many changes, some big, some small. Among the smaller ones, println has been changed to print, and the do-while loop is now the repeat-while loop.

Take a look at how this can affect your code in my new post about Print and the Repeat-While Loop in #Swift  2.   #iOS  
Add a comment...

Post has attachment
Often when working with Swift Optionals, we will want to perform an action if the Optional contains a value, or do something else if it does not.  This is done with Optional Binding with the “if let” syntax.

If the code to run when there is a value is short, you can easily see what the “else” clause is tied to.  However, if the code to run when there is a value is long, then you might need to do some scrolling to see the associated else clause.

This is where the new guard statement comes in handy, newly introduced with #Swift  2. 

Learn more in the new post The Guard Statement in Swift 2.   #iOS  
Add a comment...

Post has attachment
Wow, what a week it has been. There have been a LOT of changes and updates to Swift, iOS, Xcode, and even the developer accounts themselves, announced at WWDC 2015.

Learn more from my summary of the #Swift  and #iOS  news from #wwdc2015  this year, and stay tuned for posts covering many of these capabilities.
Add a comment...

Post has attachment
Pattern matching is a staple of functional languages.  At its core, Swift is primarily an object-oriented language, like Objective-C is.

However, there are many advantages to the way more functional style languages like Haskell and Erlang do things that the designers of Swift decided to include.  Pattern matching in particular, saves us having to type much longer, and less readable statements to do the same checks.

Learn more about this subject in the new post Pattern Matching in #Swift .   #iOS  
Add a comment...
Wait while more posts are being loaded