I'm a beginner trying to learn iOS.
I'm trying to show a sheet, but I'm finding it's not really showing anything.
This is my relevant code:
class ViewController: UIViewController {
@IBAction func openMemoryLog(_ sender: UIButton) {
let memoryLogViewController = MemoryLogViewController()
present(memoryLogViewController, animated: true)
}
}
class MemoryLogViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
print("Memory log loaded")
if let presentationController = presentationController as? UISheetPresentationController {
presentationController.detents = [ .medium() ]
}
}
}
I can see the print statement going through, so it's at least loading. But don't know what's going on here. Looks like some sort of modal thing is happening, but the IB interface isn't showing.

