From 41554f5b0842f631e5aafdbb9574067ca4ee4ee8 Mon Sep 17 00:00:00 2001 From: Lukas Schmidt Date: Mon, 13 Aug 2018 09:08:20 +0200 Subject: [PATCH] fixes some typos --- Source/ChangeAnimator/CollectionViewChangesAnimator.swift | 2 +- Source/ChangeAnimator/TableViewChangesAnimator.swift | 2 +- Source/DataProvider/Changes/DataProviderObservable.swift | 2 +- .../Changes/DefaultDataProviderObservable.swift | 2 +- .../DataSource/CollectionViewDataSource.swift | 8 ++++---- Tests/SourcingTests/TableViewDataSource.swift | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/ChangeAnimator/CollectionViewChangesAnimator.swift b/Source/ChangeAnimator/CollectionViewChangesAnimator.swift index be09a29..ac61a99 100644 --- a/Source/ChangeAnimator/CollectionViewChangesAnimator.swift +++ b/Source/ChangeAnimator/CollectionViewChangesAnimator.swift @@ -37,7 +37,7 @@ /// /// - Parameters: /// - collectionView: the collection view to be animated - /// - dataProviderObservable: observable for listening to changes of a data provider + /// - observable: observable for listening to changes of a data provider public init(collectionView: UICollectionView, observable: DataProviderObservable) { self.collectionView = collectionView self.observable = observable diff --git a/Source/ChangeAnimator/TableViewChangesAnimator.swift b/Source/ChangeAnimator/TableViewChangesAnimator.swift index 096fe04..db908ec 100644 --- a/Source/ChangeAnimator/TableViewChangesAnimator.swift +++ b/Source/ChangeAnimator/TableViewChangesAnimator.swift @@ -63,7 +63,7 @@ /// /// - Parameters: /// - tableView: the table view which should be animated - /// - dataProviderObservable: observable for listing to changes of a data provider + /// - observable: observable for listing to changes of a data provider /// - configuration: configure animations for table view change actions. public convenience init(tableView: UITableView, observable: DataProviderObservable, diff --git a/Source/DataProvider/Changes/DataProviderObservable.swift b/Source/DataProvider/Changes/DataProviderObservable.swift index b979cb6..a61fa19 100644 --- a/Source/DataProvider/Changes/DataProviderObservable.swift +++ b/Source/DataProvider/Changes/DataProviderObservable.swift @@ -25,7 +25,7 @@ import Foundation /// A observable which notifies about data provider changes. public protocol DataProviderObservable: class { - /// Observe the changes of an data provider. + /// Observe the changes of a data provider. /// /// Can be use to animate changes in a TableView or in any other view hirachy. /// diff --git a/Source/DataProvider/Changes/DefaultDataProviderObservable.swift b/Source/DataProvider/Changes/DefaultDataProviderObservable.swift index 7841b3b..afc2515 100644 --- a/Source/DataProvider/Changes/DefaultDataProviderObservable.swift +++ b/Source/DataProvider/Changes/DefaultDataProviderObservable.swift @@ -28,7 +28,7 @@ public final class DefaultDataProviderObservable: DataProviderObservable { /// Creates a instance of the obsavable. public init() {} - /// Observe the changes of an data provider. + /// Observe the changes of a data provider. /// /// Can be use to animate changes in a TableView or in any other view hirachy. /// diff --git a/Tests/SourcingTests/DataSource/CollectionViewDataSource.swift b/Tests/SourcingTests/DataSource/CollectionViewDataSource.swift index c1f2354..060547a 100644 --- a/Tests/SourcingTests/DataSource/CollectionViewDataSource.swift +++ b/Tests/SourcingTests/DataSource/CollectionViewDataSource.swift @@ -64,7 +64,7 @@ class CollectionViewDataSourceSingleCellTest: XCTestCase { XCTAssertEqual(rowCount, 3) } - func testDequeCells() { + func testDequeueCells() { //Given let dataSource = CollectionViewDataSource(dataProvider: dataProvider, cellConfiguration: cell) let indexPath = IndexPath(row: 2, section: 1) @@ -80,19 +80,19 @@ class CollectionViewDataSourceSingleCellTest: XCTestCase { XCTAssertTrue(cellAtIdexPath is UICollectionViewCellMock) } - func testDequeSupplementaryView() { + func testDequeueSupplementaryView() { //Given let elementKind = "elementKind" var configuredObject: Int? var configurationCount = 0 - let supplemenaryViewConfiguration = ReusableViewConfiguration(reuseIdentifier: reuseIdentifier, + let supplementaryViewConfiguration = ReusableViewConfiguration(reuseIdentifier: reuseIdentifier, type: .supplementaryView(kind: elementKind), configuration: { (_, _, object) in configuredObject = object configurationCount += 1 }) let dataSource = CollectionViewDataSource(dataProvider: dataProvider, cellConfiguration: cell, - supplementaryViewConfiguration: supplemenaryViewConfiguration) + supplementaryViewConfiguration: supplementaryViewConfiguration) let indexPath = IndexPath(row: 2, section: 1) //When diff --git a/Tests/SourcingTests/TableViewDataSource.swift b/Tests/SourcingTests/TableViewDataSource.swift index a19bff7..cd44c97 100644 --- a/Tests/SourcingTests/TableViewDataSource.swift +++ b/Tests/SourcingTests/TableViewDataSource.swift @@ -65,7 +65,7 @@ class TableViewDataSourceSingleCellTest: XCTestCase { XCTAssertEqual(rowCount, 3) } - func testDequeCells() { + func testDequeueCells() { //Given let cell = ReusableViewConfiguration, Int>(reuseIdentifier: reuseIdentifier)