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
Tweet

More Decks by Swift India

Other Decks in Technology

Transcript

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

    value: file Problems with Interface Builders/ Storyboard
  2. 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
  3. 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.
  4. 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
  5. 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
  6. Courtesy • WWDC sessions • Hacking with Swift • Swift

    by Sundell • And to all the amazing developers out there.