There are multiple ways to define colors in code. The most commonly used method is to
specify values for the three primary colors - red, green and blue (RGB). This article
explores the use of an alternative mechanism by specifying values for hue, saturation
and brightness (HSB). The HSB properties can be used in a more …
There are times when data in a bar chart has similar values for a number of the bars
and it can be difficult to see the differences. One option is to zoom in on the top
section of the bar chart. This article investigates a number of options and
identifies the best approach for this in Swift Charts.
I came across the Matthew effect recently, which struck me as very unfair so I
wondered if I could reproduce the results demonstrated. This article outlines the
Swift code for an app to test the redistribution of coins in a closed population
based on random coin tosses between agents in the population.
A Slider control is a UI control that allows the user to select a value from within a
range of values. In SwiftUI, it is usually presented as a thumb selector on a linear
line. There are times when it might be better to present this type of selector as a
circle with the thumb moving around the circumference. This …
At WWWDC 2022, Apple introduced SwiftUI Charts, which makes it easy to create
various charts within SwiftUI views. This article demonstrates how to quickly create
a bar chart and customise the chart containing multiple sets of data.
SwiftUI Charts introduced in iOS 16, can present data in an intuitive visual format
and can be created quickly using SwiftUI Charts. This article demonstrates a couple
of ways to customise a line chart and combine with an area chart to present data.