其他分享
首页 > 其他分享> > Swift comments All In One

Swift comments All In One

作者:互联网

Swift comments All In One

SwiftUI

single line comment

// 单行注释


comment block / multi lines comment

/*
多行注释

*/ 

demo


import SwiftUI

struct HuTongView: View {
  let hutongs: [HutongModel] = HutongData;
  var body: some View {
    ScrollView(.vertical, showsIndicators: false) {
      VStack() {
        Spacer();
        /*
        ForEach(hutongs) { item in
          // HutongRanking(hutong: item);
          HutongRanking(item);
        }
       */
        ForEach(hutongs) { hutong in
          HutongRanking(hutong);
        }
      }
    }
    //
    Text("HuTong 

标签:comment,hutong,HutongRanking,comments,item,xgqfrms,Swift,hutongs
来源: https://www.cnblogs.com/xgqfrms/p/16276932.html