Slide 15
Slide 15 text
ϨΠΞτมߋΛ
ߦ͏λΠϛϯά
override func viewWillTransition(to size: CGSize,
with coordinator: UIViewControllerTransitionCoordinator) {
super.viewWillTransition(to: size, with: coordinator)
coordinator.animate(alongsideTransition: { _ in
if size.width > size.height {
// ϨΠΞτมߋॲཧΛॻ͘
} else {
// ...
}
}, completion: nil)
}
6*7JFX$POUSPMMFSͷ"1*