Skip to content

LoniQin/HelloSwiftUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

HelloSwiftUI

Introduction

This sample demonstrates how to start with SwiftUI. You can learn the following things:

  • Basic components
    • Using Text to replace UILabel
    • Using Button to replace UIButton
    • Using Image to replace UIImageView
    • Using Toggle to replace UISwitch
    • Using List to replace UITableView
    • Using NavigationView to replace UINavigationController
    • Using NavigationLink to route to other scene
    • Using HStack, VStack, ZStack to layout UI
    • Using Spacer to show a space
    • Using Color to replace UIColor
    • Using Font to replace UIFont
  • Configuring UI style with chain syntax
  • Creating custom UI by mixing UIView and View together
  • Holding View instance with UIHostingController
  • Using State object to change UI state
  • Sharing data between views using Environment object

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages