Images can be used in a variety of ways to create engaging and entertaining iOS Apps.
Images can be used as backgrounds, icons, buttons and to improve content. This article
shows how to add an image in Xcode and goes through some of the display modifiers
to use to control the image display.
SwiftUI uses a declarative approach to creating the User Interface. This means the
code is written to state what the user interface should look like. Stacks provide a
mechanism to define the layout arrangement of multiple views in a SwiftUI app.
The Fibonacci sequence is a series of numbers where each number in the sequence is
the sum of the preceding two numbers, starting with 0 and 1. It is natural to
consider a recursive function to calculate a subset of the Fibonacci sequence, but
this may not be the most efficient mechanism.
We came across the water pouring puzzle again recently and there was some discussion
on where to start and explain how to slove it. The specific puzzle we came across was
given two containers of sizes 7 and 4 litres, measure out a volume of water that is
exactly 5 litres. A tap is available to refill the containers and …
Three dimensional objects are not easy to represent on a 2D surface such as a page or
screen. In this article, inspired by chapter 3 of Math for Programmers book, we
look at the cross product of two 3D-vectors and representing the surface of any 3D
object as a collection of triangles. The cross product can be used to …