SwitchesViewController: Modernize switches collection view controller

This switches to using the more modern collection view diffable data source API.
Also I moved the action cells into their own section so we don't need to do
arithmetic to determine whether or not a cell is an action cell or a device cell.
This commit is contained in:
2020-03-13 19:36:44 -07:00
parent 5b521541fe
commit f1f86ced29
3 changed files with 82 additions and 102 deletions

View File

@@ -0,0 +1,9 @@
//
// ServerProtocol.swift
// XIONControlPanel
//
// Created by James Magahern on 3/13/20.
// Copyright © 2020 XION. All rights reserved.
//
import Foundation