S Link
The Swift Algorithms Book
Written for students and professionals, The Swift Algorithms Book blends modern code, illustrations and computer science to help you pass the interview or build your next app. Perfect for the classroom or the office, the book takes a fresh approach to explain concepts that power search engines, databases and social networks.
Want to integrate seamless payments in your app? Try our Judo Swift SDK
Judo Swift SDK for Swift 2.0/Xcode 7 makes integrating card payments into your app simpler and more secure.
Swift Around the Web
Hidden Gems in Swift You Didn't Know About
"These were only three of the many hidden functionalities in Swift. To search for such gems, I would recommend digging into Swift’s standard library, using LLDB type lookup, and, most importantly, experimenting in playgrounds over and over again."
The playground for this article is available on Github here.
When to use map, flatMap, or for loops in Swift
I've been trying to avoid for loops as much as possible in Swift, but sometimes I've had to use them without realizing why. I like that @mokagio puts it into words - "Use for loops when there are side effects". Keep in mind that as of Swift 2.0, you can replace the for loop with the new forEach
to be cooler 😎.
Notions of Equality in Swift
I recently learned about ===
meaning reference equality in Swift. Great in-depth write-up on how to think of and work with Equality in Swift, including the Equatable
protocol.
"Despite marketing slogans, Swift isn’t “Objective-C without the C”. It approaches many problems in a way very different from common object-oriented languages, often for sound underlying reasons. The differences between value equality and reference equality are subtle yet, to some extent, fundamental. Instead of papering over them, Swift makes the delineation between the two concepts explicit."
Coding
Expressive Domain Model, Core Data, and You
Love this detailed code example of how to architect your code to work with Core Data objects as Swift structs. So simple and clean!
Your 3D Touch Spirit Guide
How to add 3D Touch interactions to your app - all in one fun place. Seriously, your users will expect these, so make these your priority features if you haven't already. As a plus, Apple is making Peek and Pop even easier to implement with Storyboard support for tables!
Apple News
Xcode 7.1 beta 3 Now Available
Changes include:
- Interface Builder supports enabling Peek & Pop for segues. Peek & Pop segues will be omitted when running on OS versions prior to iOS 9.1.
- Developers can now create Swift Error breakpoints. The breakpoint will hit when the error is thrown. Developers can edit a breakpoint so that it will only be hit for a specified Swift Type
- Xcode can now display crash reports in the Crashes Organizer that originate from your WatchKit 2 extensions.
And lot's of Playgrounds API improvements! Check out the Release Notes here and @xenadu02's summary here.
Find WWDC Video Content Quickly
🎉You can now officially search for WWDC videos for a specific keyword 🎉
Design
Design machines
"We can’t trust the data. And those who do will always be stuck chasing a robotic approach to human connection."
I once worked in a company that measured EVERYTHING about employees and productivity. It made me feel like a rat stuck in a maze in some lab.
While I believe that measuring product data is important, it's more important to figure out the humanity behind the data and work to fix issues with your product on a bigger scale than just creating a never-ending maze with synthetic cheese at every turn, just like everyone else.
Other Cool Stuff
The Dipper Audio Necklace by Tinsel
This product is one of those things that completely make sense, and makes you wonder - why doesn't this already exist? It just makes sense for tech to be fashionable and this product has the potential to make fashionable tech mainstream. Definitely support it! Can't wait to see what else @operaqueenie makes.
Videos
‘Hacking’ Live Photos, with Genady Okrain
Using the private APIs and a bit of reverse-engineering, @genadyo demonstrates how to create and view Live Photos on any iPhone, not just the 6s.
WATCH
Notes from WWDC 2015: Building Watch Apps
Didn't realize that the Apple Watch Simulator supports Force Touch. Activate via Hardware > Simulate Touch Pressure > Deep Press.
Swift Code
- UIViewXXYBoom - fun UIView boom effect
- HolyView - Custom view with transparent circle hole and title/button subview
- mattress - iOS Offline Caching for Web Content
- swifter - Tiny http server engine written in Swift programming language.
- SwiftRandom - A tiny generator of random data for swift
Business
Mobile Code Sharing Strategies: a Comparative Analysis
Really excited to be able to use the Swift option in a few months!
Swift Thoughts
This week I've discovered the magic of Live Photos! Now that my photos are Live, all normal photos make me sad. It's one of those magical features I didn't know I needed, but I can no longer live without!
However, the saddest part is that Live Photos cannot really be shared yet - apps like Twitter and Facebook don't support them yet. The only way I can share the magic is via iMessage to my friends with an iPhone 6 (I know, I know, #firstworldproblem).
Of course, this is all a matter of time. If you work on any type of photo sharing app, make sure to support Live Photos! A Live Photo social network is the next big thing!!! I can feel it!