Show Current Time with SwiftUI 3

Описание к видео Show Current Time with SwiftUI 3

Learn how to get and display the time in Xcode 13 for iOS 15 or watchOS, tvOS, and iPad with Swift 5.5!

The function name is getTime.
The function takes in no parameters (arguments).
We instantiate a DateFormatter object, which can format a Date (which includes date and time) into a String.
You must set the timeStyle of the DateFormatter to .short or .long. Otherwise, nothing will appear in your app.
The short time style shows the time, for example, as "3:20 PM".

The long time style shows the time, for example, as "11:20:14 AM PDT".

Yearly Unlimited Membership https://tinyurl.com/lifetimecourses


💚 90% OFF ONLY ON YOUTUBE
● $4.99: HTML, CSS & JavaScript http://bit.ly/htmlcssjscourse
● $9.99 Level: Make 6 games in the Unreal Engine http://bit.ly/unrealcourse
● $29.99 Level: Build The Legend of Zenda Game http://bit.ly/zendaunity
● $39.99 Level: The Deep Learning Masterclass http://bit.ly/deeplearningkeras
● $49.99 Level: Build a Battle Royale! (50 Hours) http://bit.ly/howtobuildabattleroyale
● $59.99 Level: 2D and 3D Unity Games BUNDLE http://bit.ly/2d3dgames
● $99.99 Level: Hello Coding (170 Hours) http://bit.ly/beginnerscodingcourse
● $149.99 Level: Wall Street Coder http://bit.ly/algorithmicallytrade
● $199 Level: Yearly Unlimited Subscription https://tinyurl.com/lifetimecourses
● $999 Level: Lifetime Unlimited Courses https://tinyurl.com/lifetimecourses
💚 Every dollar we make from these courses we put back into making more content.

💬 After training hundreds of thousands of developers and building a business from scratch, I can ensure your project is a success and your business makes more profit than you can on your own. For my consulting services, email hello(at)mammothinteractive.com.

🔔 Be the first to hear news via our newsletter: https://mailchi.mp/mammothinteractive...

🎓 Sign up to get a free course. Regularly 200 dollars now FREE!
https://bit.ly/2pQtT96


🐘 Check out our website: http://www.mammothinteractive.com

Комментарии

Информация по комментариям в разработке