diff --git a/Readme.md b/Readme.md index a93a2cc..552c0b6 100644 --- a/Readme.md +++ b/Readme.md @@ -297,9 +297,6 @@ Using for request and check state of permissions. Available native UI for reques #### [SparrowKit](https://github.com/ivanvorobei/SparrowKit) Collection of native Swift extensions to boost your development. Support tvOS and watchOS. -#### [Telegram Stikers](https://sparrowcode.by/telegram/stickers) -You can import stikers for Telegram about iOS Development. Stickers with Xcode elements you know. - ## Russian Community В телеграм-канале [Код Воробья](https://sparrowcode.by/telegram) пишу о iOS разработке. Помощь можно найти в [нашем чате](https://sparrowcode.by/telegram/chat). @@ -307,7 +304,3 @@ You can import stikers for Telegram about iOS Development. Stickers with Xcode e Видео-туториалы выклыдываю на [YouTube](https://sparrowcode.by/youtube): [![Tutorials on YouTube](https://cdn.ivanvorobei.by/github/readme/youtube-preview.jpg)](https://sparrowcode.by/youtube) - -[Стикеры в телеграм](https://sparrowcode.by/telegram/stickers) про iOS разработку: - -[![Telegram Stikers](https://cdn.ivanvorobei.by/github/readme/telegram-stikers-preview.png)](https://sparrowcode.by/telegram/stickers) diff --git a/SPDiffable.podspec b/SPDiffable.podspec index d8aed2d..1ed82e5 100644 --- a/SPDiffable.podspec +++ b/SPDiffable.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'SPDiffable' - s.version = '1.2.1' + s.version = '1.2.2' s.summary = 'Extenshion of Diffable API which allow not duplicate code and use less models.' s.homepage = 'https://github.com/ivanvorobei/SPDiffable' s.source = { :git => 'https://github.com/ivanvorobei/SPDiffable.git', :tag => s.version } diff --git a/SPDiffable.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate b/SPDiffable.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate index 56d29d2..d826f84 100644 Binary files a/SPDiffable.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate and b/SPDiffable.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Sources/SPDiffable/Collection/SPDiffableCollectionController.swift b/Sources/SPDiffable/Collection/SPDiffableCollectionController.swift index 539d372..f31884a 100644 --- a/Sources/SPDiffable/Collection/SPDiffableCollectionController.swift +++ b/Sources/SPDiffable/Collection/SPDiffableCollectionController.swift @@ -52,7 +52,7 @@ open class SPDiffableCollectionController: UICollectionViewController { open override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { guard let item = diffableDataSource?.item(for: indexPath) else { return } - diffableDelegate?.diffableCollectionView?(collectionView, didSelectItem: item) + diffableDelegate?.diffableCollectionView?(collectionView, didSelectItem: item, indexPath: indexPath) switch item { case let model as SPDiffableCollectionActionableItem: model.action?(indexPath) diff --git a/Sources/SPDiffable/Collection/SPDiffableCollectionView.swift b/Sources/SPDiffable/Collection/SPDiffableCollectionView.swift index 6faa0db..31fe842 100644 --- a/Sources/SPDiffable/Collection/SPDiffableCollectionView.swift +++ b/Sources/SPDiffable/Collection/SPDiffableCollectionView.swift @@ -68,7 +68,7 @@ open class SPDiffableCollectionView: UICollectionView, UICollectionViewDelegate open func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { guard let item = diffableDataSource?.item(for: indexPath) else { return } - diffableDelegate?.diffableCollectionView?(collectionView, didSelectItem: item) + diffableDelegate?.diffableCollectionView?(collectionView, didSelectItem: item, indexPath: indexPath) switch item { case let model as SPDiffableCollectionActionableItem: model.action?(indexPath) diff --git a/Sources/SPDiffable/Delegate/SPDiffableCollectionDelegate.swift b/Sources/SPDiffable/Delegate/SPDiffableCollectionDelegate.swift index 5b75248..bcd9ea6 100644 --- a/Sources/SPDiffable/Delegate/SPDiffableCollectionDelegate.swift +++ b/Sources/SPDiffable/Delegate/SPDiffableCollectionDelegate.swift @@ -27,5 +27,5 @@ import UIKit @available(iOS 13.0, *) @objc public protocol SPDiffableCollectionDelegate: AnyObject { - @objc optional func diffableCollectionView(_ collectionView: UICollectionView, didSelectItem item: SPDiffableItem) + @objc optional func diffableCollectionView(_ collectionView: UICollectionView, didSelectItem item: SPDiffableItem, indexPath: IndexPath) } diff --git a/Sources/SPDiffable/Delegate/SPDiffableTableDelegate.swift b/Sources/SPDiffable/Delegate/SPDiffableTableDelegate.swift index baab197..2f0d049 100644 --- a/Sources/SPDiffable/Delegate/SPDiffableTableDelegate.swift +++ b/Sources/SPDiffable/Delegate/SPDiffableTableDelegate.swift @@ -27,5 +27,5 @@ import UIKit @available(iOS 13.0, *) @objc public protocol SPDiffableTableDelegate: AnyObject { - @objc optional func diffableTableView(_ tableView: UITableView, didSelectItem item: SPDiffableItem) + @objc optional func diffableTableView(_ tableView: UITableView, didSelectItem item: SPDiffableItem, indexPath: IndexPath) } diff --git a/Sources/SPDiffable/Table/SPDiffableTableController.swift b/Sources/SPDiffable/Table/SPDiffableTableController.swift index b52b6b9..a66a5d6 100644 --- a/Sources/SPDiffable/Table/SPDiffableTableController.swift +++ b/Sources/SPDiffable/Table/SPDiffableTableController.swift @@ -62,7 +62,7 @@ open class SPDiffableTableController: UITableViewController { open override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { guard let item = diffableDataSource?.itemIdentifier(for: indexPath) else { return } - diffableDelegate?.diffableTableView?(tableView, didSelectItem: item) + diffableDelegate?.diffableTableView?(tableView, didSelectItem: item, indexPath: indexPath) switch item { case let model as SPDiffableTableRow: model.action?(indexPath) diff --git a/TODO.md b/TODO.md index 3e555e8..fc25002 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,3 @@ # To Do List -- Update `SPDiffableCollectionDelegate` & `SPDiffableTableDelegate` for process index path. +- Now no more plans. For add feature please create issue.