Swift Developments is a hand-curated newsletter containing a weekly selection of the best links, videos, tools and tutorials for people interested in designing and developing their own apps using Swift.
Business
Reduce Risk in Your Product Development with Hypothesis-Driven Design
Releasing a new project can often be risky and one of the biggest sources of that risk is the assumptions we make during design and development. The sad thing is though, that these assumptions can often wrong. @chrlomholt shows you how to reduce the risk with a more structured approach to your development process – hypothesis driven design.
nodesagency.com
A Year of Working Remotely
Remote working positions have become increasingly prevalent in recent years. In this article, @mikeindustries provides some insights into the benefits and challenges of remote positions.
mikeindustries.com
Design
8 Tips for Dark Theme Design
With Dark mode arriving on iOS this year, @101babich has put together this article with some useful tips on designing a dark theme for your next iOS app.
uxpro.cc
Stop Misusing Toggle Switches
As the opening sentence in this article explains: – “There are times to use toggle switches and times not to.” @uxmovement provides some insight into when you should, and shouldn’t be using switches in your designs.
uxmovement.com
Swift
Using Swift for Scripting
Although you’ve most likely used Swift to build different apps there are times when building a full-blown app is a bit – well, ‘heavyweight’ – you might just want something quick and simple to automate something on our system. The good news is that Swift can be used for this as well! Learn how with this Swift scripting article from @rderik.
rderik.com
Code
Combine vs. RxSwift: Should you switch to Combine?
So you’ve been working on an RxSwift-based application for a while but this year Apple have announced Combine – their own take on a reactive programming framework. So where does this leave you? Should you switch? @kofse compares and contrasts the two frameworks and explores some of the options you have going forward.
quickbirdstudios.com
Combine Latest Collection
Once you’ve got beyond the basics of the built-in Publishers and Subscribers in Combine you’ll soon find yourself wanting to create a custom publisher. On such example is this one from @danielctull which shows you how to build a custom publisher that takes inputs from an array of publishers and combines their outputs into a single result.
danieltull.co.uk
SwiftUI
A Beginner’s Guide to SwiftUI Buttons
When learning iOS development – adding a button is almost the first thing you learn how to do and with SwiftUI set to fundamentally change how we develop UIs for Apple platforms, @simonng goes back to basics with this beginners guide on using buttons in SwiftUI.
appcoda.com
Understanding SwiftUI Data Flow
One of the most fundamental changes in how SwiftUI works compared to say UIKit, is the way data flows through your application. This article from @Dimillian digs into these ideas, looking at property wrappers and the key protocols in SwiftUI and how they come together to help simplify the data flow within your app.
medium.com
Building SwiftUI Video Game DB App using IGDB Remote API
Put some of your new SwiftUI knowledge into practice with this tutorial from @alfianlosari showing you how to build a video game database app using SwiftUI and the IGDB API.
medium.com
Testing
Local API Call Tutorial with WireMock and UI Tests in Xcode
WireMock is a development tool that provides a local copy of the results of a remote API call. Get up to speed with this tutorial from @ski081 and learn how to use it WireMock in conjunction with your User Interface tests to test how your UI behaves with a range of different API responses.
raywenderlich.com
Unit Testing Asynchronous Code in Swift
If your regularly writing unit tests for your Swift code it won’t be long before you’re faced with having to unit test some code that behaves asynchronously. In this article, @V8tr explores some different techniques you can use to tackle this problem including mocking and using signals to reliably test those cases where mocking isn’t an option.
vadimbulavin.com
Tools
Launching the SwiftPM Library
With SwiftPM getting first-class support at this years WWDC, @daveverwer has been hard at work with his new project – SwiftPM Library – a search engine to help with locating the ideal SwiftPM for your project. As ever, great job Dave! ?
daveverwer.com
Advanced lldb tricks for Swift – Injecting and changing code on the fly
Whilst Xcode provides a nice wrapper around lldb with it’s debugging UI, for access to lldb’s most powerful features you still have to drop down to the command line. @rockthebruno does just that in this tutorial, showing you how to use lldb to modify your running Swift code on the fly.
swiftrocks.com
Videos
Integrating Core Data with SwiftUI
Core Data is the defacto persistence framework for iOS and in this tutorial, @azamsharp shows you some simple steps to integrate it into your SwiftUI app.
youtu.be
Why is this Developer Eating a Habanero Pepper Covered in Ghost Pepper Flakes?
Funny and educational. What more could you want? @ZevEisenberg on spicing up your Swift code. ?
youtu.be
Other
How to Maintain Focus as a Software Developer?
As developers, we need to keep a lot of things in our head. What problem are we trying to solve? What does our design look like? How are we going to structure things? What are all the paths through the app? All of this takes focus – but focus can sometimes be difficult to achieve and maintain. @pakisha1989 looks at some techniques to quickly get into that state of ‘flow’ and how you can then preserve it.
medium.com
iOS-factor: Best Practices for Building High-Quality iOS Apps
Anatolii Kasianov with a collection of tips and best practices for building high-end, maintainable and robust iOS apps.
medium.com