Closed Eddpt closed 7 years ago
When using Layout all the UIAlertControllers seem to have missing UIAlertActions, only on iOS 9.
Layout
UIAlertControllers
UIAlertActions
private func presentAlert() { let sheet = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) sheet.addAction(UIAlertAction(title: "Edit", style: .default, handler: nil)) sheet.addAction(UIAlertAction(title: "Delete", style: .destructive, handler: nil)) sheet.addAction(UIAlertAction(title: "cancel", style: .cancel, handler: nil)) present(sheet, animated: true) }
See the following sample project
When using Layout version 0.4.13 it works fine, but upgrading to 0.4.14 or greater breaks.
0.4.13
0.4.14
From inspecting the views, it does seem that Apple uses a UICollectionView to present the Sheet, so perhaps that's a good hint of where the issue might be.
UICollectionView
Thanks! I've pushed a fix to the develop branch.
Working 👍
When using
Layout
all theUIAlertControllers
seem to have missingUIAlertActions
, only on iOS 9.See the following sample project
When using
Layout
version0.4.13
it works fine, but upgrading to0.4.14
or greater breaks.From inspecting the views, it does seem that Apple uses a
UICollectionView
to present the Sheet, so perhaps that's a good hint of where the issue might be.