Open in app

Sign In

Write

Sign In

David Piper
David Piper

303 Followers

Home

About

Published in Better Programming

·Oct 26, 2022

Create a Swifty Command-Line Tool With ArgumentParser

Save your notes as files! — As iOS developers, we use the terminal every day. It’s hard to imagine programming without command-line tools like Git or CocoaPods. Apple makes it super easy to create your own command-line tools using Swift. …

Swift

11 min read

Create a Swifty Command-Line Tool With ArgumentParser
Create a Swifty Command-Line Tool With ArgumentParser
Swift

11 min read


Published in Better Programming

·Jan 10, 2022

Advanced Audio Graphs in Swift

Making graphs and charts accessible — In the first part, Getting Started with Audio Graphs in Swift and iOS 15, we looked at how to create a basic Audio Graph. In this part, we’ll go a step further and see how we can present multiple data series in one chart and use different types of axes. …

Swift

7 min read

Advanced Audio Graphs in Swift
Advanced Audio Graphs in Swift
Swift

7 min read


Published in Better Programming

·Jan 3, 2022

Getting Started With Audio Graphs in Swift and iOS 15

Making graphs and charts accessible — part one — Apple is known for great accessibility. iOS became even more accessible for visually impaired users with the new Audio Graphs feature introduced in iOS 15. This tutorial covers everything you need to know to get started with Audio Graphs for your iOS app. …

Swift

7 min read

Getting Started With Audio Graphs in Swift and iOS 15
Getting Started With Audio Graphs in Swift and iOS 15
Swift

7 min read


Sep 6, 2021

5 amazing Tools for every iOS Developer

Apps help creating better Apps! — There are a lot of apps and tools out there promising to help us develop amazing apps. Let’s look through some of the really useful ones I use frequently! 1. Xcodes The easiest way to install and switch between multiple versions of Xcode. We all know the struggle. Supporting many Xcode versions…

Swift

4 min read

5 amazing Tools for every iOS Developer
5 amazing Tools for every iOS Developer
Swift

4 min read


Jul 15, 2021

Creating a Tag Cloud for macOS

Creating a resizable and reusable view for a macOS app Creating a macOS app allows us to use a whole different set of tools than creating an iOS app. In this article we’ll look at one example of a view we can only use at the mac: A Tag Cloud…

Swift

5 min read

Creating a Tag Cloud for macOS
Creating a Tag Cloud for macOS
Swift

5 min read


May 24, 2021

Implementing Undo and Redo with the Command Design Pattern in Swift

Using UndoManager to create an Undoable History — Undo and redo are two common functions found in many apps and your users may expect it in your app as well. Whenever it’s possible to manipulate data, your users will be grateful when they can undo their errors. …

Swift

6 min read

Implementing Undo and Redo with the Command Design Pattern in Swift
Implementing Undo and Redo with the Command Design Pattern in Swift
Swift

6 min read


Published in Better Programming

·Apr 12, 2020

Analyse the Contents of Swift Files With SourceKitten

Inspecting the content of a Swift source file in Swift — SourceKitten is an open-source project to parse the content of and get detailed information about a Swift file. It’s used in many tools you may use regularly, like SwiftLint and Jazzy. When looking at its readme file, it seems like it’s only a command-line tool. However, SourceKitten also includes a…

Swift

6 min read

Analyze the Contents of Swift Files With SourceKitten
Analyze the Contents of Swift Files With SourceKitten
Swift

6 min read


Published in Better Programming

·Mar 29, 2020

Drawing in a UIView

How to draw with your finger and export an image — In this short article, we will explore how to add a view to our apps, where users can draw with their finger. Creating a drawing is quite easy. First, we will see how to get the positions of touches and track movements. The next step is to connect these points…

Swift

3 min read

Drawing in a UIView
Drawing in a UIView
Swift

3 min read


Published in Better Programming

·Mar 15, 2020

Unit and Measurement in Swift

How to use and convert units in a type-safe way — Whenever we are dealing with measurements in our apps and need to convert one unit to another (e.g. an imperial unit like inches to a metric unit like meters), we can write the conversion ourselves. However, this can get quite complicated and error-prone. Instead, Apple provides a convenient way of…

Swift

5 min read

Unit and Measurement in Swift
Unit and Measurement in Swift
Swift

5 min read


Published in Better Programming

·Mar 1, 2020

How to Build Better Password Entry in SwiftUI

Add a show/hide password button to your password text field — Many big apps — like YouTube, Twitter, and Amazon — allow their users to switch between a secured text field and a normal text field whenever a password needs to be entered. …

Swift

5 min read

How to Build Better Password Entry in SwiftUI
How to Build Better Password Entry in SwiftUI
Swift

5 min read

David Piper

David Piper

303 Followers

Working as an iOS and Android dev.

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech