String Formatting | Swift 4, Xcode 10

preview_player
Показать описание
Today we go over how to format Swift strings in our Timer app. We are going to change our timer app to show the milliseconds and handle the rounding all with string formatting.

By the end of this tutorial, you will know how to use string formatting to insert variables into your string with a specified format.

*** Show Notes and Links ***

Need Help?

Project Files:

Kyle Lee on Social Media:

---------GEAR -------

Code Passionately T-Shirt

Laptop - 2017 MacBook Pro

Microphone - PowerDeWise Lavalier Microphone

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, we’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Hey great job on the thorough explanations. A lot of people making coding tutorials move way too fast and don't take time to explain what's going on.

nicholaslara
Автор

There must be a way to use an existing time formatter, no? Using DateComponents and/or DateFormatter or the likes.

gjermundification
Автор

numbers have a differents width so it makes the timer like "shaking" all the time, how can you correct that ? create a label for every number ?

ozvaozvassilius
Автор

Thanks kilo. I like you dark theme could you send to me ?

rebazrauf
Автор

"It's your boy" in many countries can be understood as " I am gay"

smarter