Create a Calculator iOS App in Swift

Create a Calculator iOS App in Swift

  • English
  • Programming
  • SwiftSwift
  • (662)
  • Project length: 6h 37m

In this tutorial we will create a simple calculator in Swift. You'll learn how to set up your UI from a predesigned template using auto-layout, how you connect your UI with your code to get to a working calculator. We will go though all the theoretical stuff ti get you up and running from the very start. You will lern the basics of Swift and how to think like a programmer.

Overview

Introduction

In this tutorial we will create a simple calculator in Swift. You'll learn how to set up your UI from a predesigned template using auto-layout, how you connect your UI with your code to get to a working calculator.

We will go though all the theoretical stuff ti get you up and running from the very start. You will lern the basics of Swift and how to think like a programmer.

What are the requirements?

  • Installed Version of Xcode 9
  • Fun to learn!

What is the target audience?

  • Beginners in learning how to create Apps

When are the streaming sessions (streaming schedule)?

Weekly Sunday on 4 PM EST

Project Outline

Session 1: Creating the UI

Setting up the UI for a calculator using auto layout in such a way that it works on iPhones and iPads.

Session 2: Storing Math in Swift

We will learn about the basic concepts in Swift like storing data, data types, operators, functions & methods, optionals, arrays, control flow, creating out own data types and using protocols to ensure a certain interface to these.

With that knowledge, we'll create a representation for mathematical terms, which we will need to give our previously created UI the functionality of a calculator.

Session 3: Calculating Mathematical Terms

We will now create the calculator logic. For this we will examine what the challenges are, when evaluating mathematical terms and will come up with an elegant solution in form of a "LR Parser".

Session 4 + 5: Bring it together

In this sessions we will finally bring our representation, the calculator logic and our UI together to actually calculate stuff and bring our calculator UI to life. We will face some issues with representing numbers and how to localize the app for different parts of the world.

Tools: Xcode 9

Reviews

Average rating

4(662 Reviews)