DEV Community

Opeyemi Noah
Opeyemi Noah

Posted on

Day 2/100 day of SwiftUI

Mission log 2, and i apologize if i wont be able to go into details.

It's day 2 of 100 days of swiftui course offered by HWS + and yes it has been interesting so far.

Day 2 is all about Booleans, string interpolation

i learn't the following:

  • How to store truth with boolean
var isItRaining = false
Enter fullscreen mode Exit fullscreen mode
  • How to join two strings together In swift there are two ways to join strings
  1. by using + operator
  2. by using interpolation
// Interpolation

var name = "Opeyemi"
var introduction = "My name is \(name)"

//output : My name is Opeyemi
Enter fullscreen mode Exit fullscreen mode

NOTE: I noticed how + operator can be used for multiple operation, and this is referred to as OPERATOR OVERLOADING

Top comments (0)