Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct EditMembersView: View {
- @State private var items = ["1", "2"]
- @State private var selectedItem: String?
- // TODO: Replace the `minimumValue` below from the conversion result of UICollectionViewCell xib
- let gridLayout = [GridItem(.adaptive(minimum: 150), spacing: 8)]
- @State private var collectionViewItems = ["1", "2"]
- var body: some View {
- NavigationView {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- Text("ALL USERS")
- .frame(dynamicWidth: 414, dynamicHeight: 40, alignment: .leading)
- .font(.custom(".AppleSystemUIFont", size: 13))
- .background(Color(.groupTableViewBackground))
- List {
- Section(footer: EditMembersViewControllerListFooterView()) {
- ForEach(items, id: \.self) { item in
- CustomTableViewCell()
- .listRowInsets(EdgeInsets())
- .contentShape(Rectangle())
- }
- }
- }
- .introspectTableView(customize: { tableView in
- tableView.alwaysBounceHorizontal = true
- tableView.alwaysBounceVertical = true
- tableView.clipsToBounds = true
- })
- .frame(dynamicWidth: 414, dynamicHeight: 488)
- .listStyle(.plain)
- .offset(dynamicX: 0, dynamicY: 40)
- }
- }
- .frame(dynamicWidth: 414, dynamicHeight: 660)
- }
- }
- .navigationTitle("Edit Members")
- .navigationBarTitleDisplayMode(.automatic)
- .navigationBarItems(leading: Button(action: {}) {
- Text("Cancel")
- },
- trailing: Button(action: {}) {
- Text("Save")
- })
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement