mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 17:29:23 +00:00
Make app run on iOS 17 and up.
This commit is contained in:
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]
|
||||
|
||||
Reference in new issue
Block a user