1234567891011121314151617181920212223 |
- //
- // exam.swift
- // 74 桌
- //
- // Created by yunli on 2023/5/20.
- //
- import SwiftUI
- struct examListView: View {
- @Binding var count: Int
- var body: some View {
- List {
- ForEach(0 ..< count, id: \.self) { item in
- Text("\(item)")
- }
- Button(action: { count += 1 }) {
- Label("添加考试", systemImage: "plus")
- }
- }
- .navigationBarTitle("考试列表")
- }
- }
|