示例代码:
struct ContentView : View { var body: some View { Group { Text("Apple") Text("Banana") Text("Orange") Text("Watermelon") Text("Grape") Text("Papaya") Text("Pear") } .font(.title) .foregroundColor(.orange) .padding() } }
示例代码:
struct ContentView : View { var body: some View { Group { Text("Apple") Text("Banana") Text("Orange") Text("Watermelon") Text("Grape") Text("Papaya") Text("Pear") } .font(.title) .foregroundColor(.orange) .padding() } }