Skip to content
Global sound
Stanford Online: University Courses & Lectures

Stanford Online: University Courses & Lectures

Stanford CS193p: iOS Development with SwiftUI | 2025 | L2: Code Breaker App

· 1 h 13 min

Show notes

View course details: https://online.stanford.edu/courses/cs193p-ios-application-developmentAll course materials are available at https://cs193p.stanford.edu.The 2nd lecture of the 2025 version of Stanford's CS193p course (developing applications for iOS using SwiftUI). Continues explanation of SwiftUI development by introducing View modifiers, the second major pillar of UI building, alongside Views. Demonstrates how View modifiers work as chainable functions that return modified Views, showing examples like .font(), .foregroundStyle(), and .padding(). Explains how modifiers are applied in order and can be passed down from container Views to their children. The lecture then dives into building the CodeBreaker app, creating and layout out the game's pegs, then building the markers using Shapes with modifiers like .fill(), .stroke(), and .opacity(). Covers creating custom structs that behave like Views, moving Views to separate files, using enums (for match states like exact, inexact, nomatch), and introduces functional programming concepts like count(where:) for Array processing. The lecture emphasizes decomposition as crucial for code maintainability and compiler performance.Uploaded 13-11-25Paul Hegarty is a Lecturer who has been teaching CS193p at Stanford since 2010.
Learn more about your ad choices. Visit megaphone.fm/adchoices

Live, last hour: 15,637 songs on 6,572 stations in 130 countries

Discover the world through radio

More ways to discover (8)

Heard something good? Save it, or open it straight away in Spotify.

★ Artist of the week The fastest riser on the radio this week

All I Want For Christmas Is You

Mariah Carey

▲ 46places up54countries540radio stations2,144×on the radio

Measured live on 15,000+ radio stations worldwide

Spotify Watch the video
CJRK-FM 102.7 "East FM" Toronto, ONContinue listening