Make app run on iOS 17 and up.

This commit is contained in:
Brent Simmons committed 2026-03-29 21:31:02 -07:00
1 parent 9e277236cf
commit 4a2c62cc6c
43 files changed
+127 -82

No files matched your search

@@ -317,7 +317,12 @@ class MainTimelineCollectionViewCell: UICollectionViewCell {
override func updateConfiguration(using state: UICellConfigurationState) {
super.updateConfiguration(using: state)
var backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state)
var backgroundConfig: UIBackgroundConfiguration
if #available(iOS 18, *) {
backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state)
} else {
backgroundConfig = UIBackgroundConfiguration.listGroupedCell().updated(for: state)
}
backgroundConfig.cornerRadius = 20
backgroundConfig.edgesAddingLayoutMarginsToBackgroundInsets = [.leading, .trailing]