// // ForayDetailViewController.swift // foray // // Created by Nicholas Tay on 16/3/2022. // import UIKit class ForayDetailViewController: UIViewController { let detailView: ForayNewDetailView = ForayNewDetailView(frame: CGRect.zero) override func viewDidLoad() { super.viewDidLoad() self.title = "Details" self.view.backgroundColor = .systemBackground self.view.addSubview(detailView) detailView.snp.makeConstraints { (make) in make.edges.equalTo(self.view.snp.margins) } } public func setSelectedItem(selectedItem: PenguinItem) { detailView.setSelectedItem(selectedItem: selectedItem) } }