Skip to content

Commit

Permalink
Make number detail screen web based
Browse files Browse the repository at this point in the history
  • Loading branch information
joemasilotti committed Feb 19, 2025
1 parent 73bbf10 commit 9b2bef4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
1 change: 1 addition & 0 deletions Demo/NumbersViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ final class NumbersViewController: UITableViewController, PathConfigurationIdent

let number = indexPath.row + 1
cell.textLabel?.text = "Row \(number)"
cell.accessoryType = .disclosureIndicator

return cell
}
Expand Down
5 changes: 0 additions & 5 deletions Demo/SceneController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ extension SceneController: NavigatorDelegate {
case NumbersViewController.pathConfigurationIdentifier:
return .acceptCustom(NumbersViewController(url: proposal.url, navigator: activeNavigator))

case "numbers_detail":
let alertController = UIAlertController(title: "Number", message: "\(proposal.url.lastPathComponent)", preferredStyle: .alert)
alertController.addAction(.init(title: "OK", style: .default, handler: nil))
return .acceptCustom(alertController)

default:
return .acceptCustom(HotwireWebViewController(url: proposal.url))
}
Expand Down
10 changes: 0 additions & 10 deletions Demo/path-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@
},
"comment": "Intercept with a native view."
},
{
"patterns": [
"/numbers/[0-9]+$"
],
"properties": {
"view_controller": "numbers_detail",
"context": "modal"
},
"comment": "Intercept with a native view."
},
{
"patterns": [
"^/$"
Expand Down

0 comments on commit 9b2bef4

Please sign in to comment.