Episode 45

You Are Not Your Code

00:00:00
/
01:43:49

September 7th, 2021

1 hr 43 mins 49 secs

Season 1

Your Hosts
Tags

About this Episode

Welcome to Code Completion, Episode 45! We are a group of iOS developers and educators hoping to share what we love most about development, Apple technology, and completing your code!

Follow us @CodeCompletion on Twitter to hear about our upcoming livestreams, videos, and other content.

Today, we discuss:

Also, join us for #CompleteTheCode and Compiler Error, two segments that test both your knowledge and our knowledge on Swift, Apple, and all things development!

Your hosts for this week:

Be sure to also sign up to our monthly newsletter, where we will recap the topics we discussed, reveal the answers to #CompleteTheCode, and share even more things we learned in between episodes.

You are what makes this show possible, so please be sure to share this with your friends and family who are also interested in any part of the app development process.

Sponsor

This week's episode of Code Completion is brought to you by Sticky Widgets. Go to https://apps.apple.com/app/apple-store/id1533254320?pt=1765080&ct=CodeCompletion&mt=8 today to check it out!

Complete the Code

Why is this SwiftUI code not advisable, and how can you fix it?

// Why is this SwiftUI code not advisable, and how can you fix it?
var body: some View {
    if isLoggedIn {
        Text("You are logged in!")
    } else {
        Text("You must first log in!")
    }
}

Be sure to tweet us with hashtag #CompleteTheCode if you know the answer!

Compiler Error

This week's Compiler Error has a theme: Apple Antitrust Cases!
1 - In its first antitrust case, Apple Computer was sued in 1997 by publishing houses for not licensing its MacOS system software to run on other compatible hardware at the time.
2 - Apple was sued in 2005 for allegedly operating a music-downloading monopoly through iTunes and the iPod music player, preventing RealNetworks music from playing on iPods.
3 - Just a few months after the original iPhone was released, Apple was sued in a case that lasted until 2019 partly over the fact that the just-released device could not run third-party apps.
4 - After only a year and a half of litigation, Apple was found guilty in a case where there was compelling evidence that they played a central role to eliminate retail competition.