|
|
@@ -151,7 +151,7 @@ extension DetailViewController {
|
|
|
}
|
|
|
|
|
|
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
|
|
- switch Sections(rawValue: (indexPath as NSIndexPath).section)! {
|
|
|
+ switch Sections(rawValue: indexPath.section)! {
|
|
|
case .headers:
|
|
|
let cell = tableView.dequeueReusableCell(withIdentifier: "Header")!
|
|
|
let field = headers.keys.sorted(by: <)[indexPath.row]
|
|
|
@@ -191,7 +191,7 @@ extension DetailViewController {
|
|
|
}
|
|
|
|
|
|
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
|
|
- switch Sections(rawValue: (indexPath as NSIndexPath).section)! {
|
|
|
+ switch Sections(rawValue: indexPath.section)! {
|
|
|
case .body:
|
|
|
return 300
|
|
|
default:
|