Introduction to SwiftUI

Jun 20 2024 · Swift 5.10, iOS 17.3, Xcode 15.3

Lesson 02: Understanding Modifiers, State & Binding

Modifiers: Hands-On Demo

Episode complete

Play next episode

Next

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Intro

Image("MyCat")
  .resizable()
  .frame(width: 100, height: 100)
Text("Select Cat Age")
  .font(.largeTitle)
  .padding()
  .background(.green)
  .foregroundStyle(.white)
Text("100")
  .bold()
  .font(.title)
  .foregroundStyle(.orange)
Slider(value: .constant(100), in: 0...255)
  .tint(.green)
  .padding()
Button("Next") {
  // Action to perform
}
.buttonStyle(.borderedProminent)
.padding()
See forum comments
Cinema mode Download course materials from Github
Previous: Modifiers Next: State & Binding