Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to SwiftUI

Introduction to SwiftUI

Swift Hyderabad Chapter 4
Speaker: Venkatachalam Perumal

Abstract: In this session, we will be going through a brief introduction to SwiftUI. We will also be exploring View layout, State and Composing views.

Bio: Currently working as a Senior iOS Engineer in Mutual Mobile. I have been working on Swift since its introduction. Outside of work, I like to listen to music, travel, and read books.


Swift India

October 19, 2019


  1. Intro to SwiftUI

  2. Agenda • Problems with Interface Builders/Storyboard • What is SwiftUI?

    • Demo
  3. Problems with Interface Builders/Storyboard

  4. Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional

    value: file Problems with Interface Builders/ Storyboard
  5. Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'view reuse

    identifier in nib (customCell) does not match the identifier used to register the nib (MenuCollectionViewCell Problems with Interface Builders/ Storyboard
  6. Problems with Interface Builders/ Storyboard

  7. Solving merge conflicts in storyboard

  8. None
  9. courtesy: @M0rtyMerr

  10. What is SwiftUI?

  11. What is SwiftUI? SwiftUI is a user interface toolkit that

    lets us design apps in a declarative way. That’s a fancy way of saying that we tell SwiftUI how we want our UI to look and work, and it figures out how to make that happen as the user interacts with it.
  12. None
  13. Swift UI Developer

  14. Migrating to SwiftUI

  15. None
  16. Migrating to SwiftUI UIKit SwiftUI UITableView List UICollectionView No SwiftUI

    equivalent UILabel Text UITextField TextField UITextField (isSecureTextEntry) SecureField UITextView No SwiftUI equivalent UISwitch Toggle UISlider Slider UIButton Button
  17. Migrating to SwiftUI UIKit SwiftUI UINavigationController NavigationView UIAlertController (style: .alert)

    Alert UIAlertController (style: .actionsheet) ActionSheet UIStackView (horizontal axis) HStack UIStackView (vertical axis) VStack UIImageView Image UISegmentedControl Slider UIStepper Stepper UIDatePicker DatePicker
  18. Demo

  19. Does SwiftUI replace UIKit?

  20. Courtesy • WWDC sessions • Hacking with Swift • Swift

    by Sundell • And to all the amazing developers out there.
  21. Thanks for coming! Happy Coding Q&A

  22. Demo Project Link https://github.com/venkatchm/SwiftIndia-SwiftUI-Talk