mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 04:03:26 +01:00
Displays app details when selecting app in MyAppsViewControllers
This commit is contained in:
@@ -59,6 +59,12 @@
|
|||||||
</label>
|
</label>
|
||||||
</subviews>
|
</subviews>
|
||||||
</tableViewCellContentView>
|
</tableViewCellContentView>
|
||||||
|
<connections>
|
||||||
|
<segue destination="hR3-go-2DG" kind="show" identifier="showAppDetail" id="VNt-zB-flO">
|
||||||
|
<segue key="commit" inheritsFrom="parent" id="8jj-zE-2hk"/>
|
||||||
|
<segue key="preview" inheritsFrom="commit" id="9iz-NY-nvu"/>
|
||||||
|
</segue>
|
||||||
|
</connections>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
</prototypes>
|
</prototypes>
|
||||||
<connections>
|
<connections>
|
||||||
|
|||||||
@@ -26,6 +26,19 @@ class MyAppsViewController: UITableViewController
|
|||||||
|
|
||||||
self.tableView.dataSource = self.dataSource
|
self.tableView.dataSource = self.dataSource
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func prepare(for segue: UIStoryboardSegue, sender: Any?)
|
||||||
|
{
|
||||||
|
guard segue.identifier == "showAppDetail" else { return }
|
||||||
|
|
||||||
|
guard let cell = sender as? UITableViewCell, let indexPath = self.tableView.indexPath(for: cell) else { return }
|
||||||
|
|
||||||
|
let installedApp = self.dataSource.item(at: indexPath)
|
||||||
|
guard let app = installedApp.app else { return }
|
||||||
|
|
||||||
|
let appDetailViewController = segue.destination as! AppDetailViewController
|
||||||
|
appDetailViewController.app = app
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private extension MyAppsViewController
|
private extension MyAppsViewController
|
||||||
|
|||||||
Reference in New Issue
Block a user