refer to Apple Documentation Text A Text view displays read-only text. Text("Hamlet") .font(.largeTitle) Text("by William Shakespeare") .font(.caption) .italic() Image HStack { Image(systemName: "folder.badge.plus") Image(systemName: "heart.circle.fill") Image(systemName: "alarm") Image("Yellow_Daisy") .resizable() .scaledToFit() } .symbolRenderingMode(.multicolor) .font(.largeTitle) AsyncImage Image which from a server. AsyncImage(url: URL(string: "https://example.com/icon.png")) .frame(width: 200, height: 200) Label Label("Favorite Books", systemImage: "books.vertical") .labelStyle(.titleAndIcon) .font(.largeTitle) Controls & Picker & Button VStack { HStack { Picker("Choice", selection: $choice) { choiceList() } Button("OK") {
      
      
    
        For ubuntu/debian
 It takes up more than fucking 8GB ram, which is unacceptable to the local repository, so I decided to run it on docker.
 # install curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh sudo bash script.deb.sh sudo apt-get install gitlab-ce # Exception: wait for logrotate service socket /opt/gitlab/embedded/bin/runsvdir-start & # Change host: external_url "http://localhost:8111" nano /etc/gitlab/gitlab.rb # Reload configuration gitlab-ctl reconfigure # restart gitlab-ctl restart # Exception: runsv not running sudo systemctl enable gitlab-runsvdir.
      
      
    
         SwiftUI official documentation
 
      
      
    
        # swift interactive shell swift repl # init a package (create manifest file for current package) swift package init # init a executable package swift package init --type executable # build a package swift build # run the tests for package swift test # build and run executable package swift run Hello <param> # 编译指定swift,生成可执行文
      
      
    
        查找以下目录的plist,找到对应并删除: ~/Library/LaunchAgents/ /Library/LaunchAgents/ /System/Library/LaunchAgents/ /Library/LaunchDaemons/ /System/Library/LaunchDaemons/
      
      
    
        详细基础知识参考 swift language guide or Apple Swift build & package swift package manager let常量 var变量 var aDouble: Double类型申明 没有隐式类型转换,类型转换需要直接申明String(aD
      
      
    
        简单来说,constructor 只用来注入依赖,初始化逻辑都应该放在 ngOnInit StackOverFlow What difference between constructor and ngOnInit