Skip to content

Commit 3bf9bf4

Browse files
committed
Fix Xcode 12.5 build issue.
1 parent 606c9d5 commit 3bf9bf4

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
33

44
# Next
55

6+
Note: This is backwards-compatibility release, it only fixes build issue with Xcode 12.5. For future development please consider migrating to DTCollectionViewManager 8.
7+
8+
### Fixed
9+
10+
* Build issues with Xcode 12.5
11+
612
## [7.1.0](https://github.com/DenTelezhkin/DTCollectionViewManager/releases/tag/7.1.0)
713

814
### Changed

Sources/DTCollectionViewManager/DTCollectionViewDataSource.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import UIKit
2727
import DTModelStorage
2828

29-
//swiftlint:disable:next type_name
29+
// swiftlint:disable:next type_name
3030
private class DummyCollectionViewCellThatPreventsAppFromCrashing: UICollectionViewCell {}
3131

3232
/// Object, that implements `UICollectionViewDataSource` methods for `DTCollectionViewManager`.
@@ -106,7 +106,7 @@ open class DTCollectionViewDataSource: DTCollectionViewDelegateWrapper, UICollec
106106
to: destination)
107107
}
108108

109-
@available(tvOS 10.2, *)
109+
@available(iOS 14.0, tvOS 10.2, *)
110110
/// Implementation of `UICollectionViewDataSource` protocol.
111111
open func indexTitles(for collectionView: UICollectionView) -> [String]? {
112112
if let reaction = collectionViewReactions.first(where: { $0.methodSignature == EventMethodSignature.indexTitlesForCollectionView.rawValue }) {
@@ -115,7 +115,7 @@ open class DTCollectionViewDataSource: DTCollectionViewDelegateWrapper, UICollec
115115
return (delegate as? UICollectionViewDataSource)?.indexTitles?(for: collectionView)
116116
}
117117

118-
@available(tvOS 10.2, *)
118+
@available(iOS 14.0, tvOS 10.2, *)
119119
/// Implementation of `UICollectionViewDataSource` protocol.
120120
open func collectionView(_ collectionView: UICollectionView, indexPathForIndexTitle title: String, at index: Int) -> IndexPath {
121121
if let indexPath = performNonCellReaction(.indexPathForIndexTitleAtIndex, argumentOne: title, argumentTwo: index) as? IndexPath {

Sources/DTCollectionViewManager/DTCollectionViewManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ open class DTCollectionViewManager {
9494
/// Factory for creating cells and reusable views for UICollectionView
9595
final lazy var viewFactory: CollectionViewFactory = {
9696
precondition(self.isManagingCollectionView, "Please call manager.startManagingWithDelegate(self) before calling any other DTCollectionViewManager methods")
97-
//swiftlint:disable:next force_unwrapping
97+
// swiftlint:disable:next force_unwrapping
9898
let factory = CollectionViewFactory(collectionView: self.collectionView!)
9999
factory.anomalyHandler = anomalyHandler
100100
return factory

0 commit comments

Comments
 (0)