Skip to content

Commit be1f8f0

Browse files
authored
Fix some typos (#171)
1 parent a1a2929 commit be1f8f0

File tree

17 files changed

+27
-27
lines changed

17 files changed

+27
-27
lines changed

Example/EpoxyExample/ViewControllers/LayoutGroups/ComplexDeclarativeViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ final class ComplexDeclarativeViewController: UIViewController {
7272
("Purple", UIColor.systemPurple),
7373
]
7474
let numberOfItems = Int.random(in: 1..<possibleItems.count)
75-
let allIndicies = Array(0...numberOfItems).shuffled()
75+
let allIndices = Array(0...numberOfItems).shuffled()
7676
let textStyles: [UIFont.TextStyle] = [
7777
.title2,
7878
.title3,
7979
.body,
8080
]
8181

82-
return allIndicies.map { index in
82+
return allIndices.map { index in
8383
let color = possibleItems[index]
8484
let textStyle = textStyles.randomElement() ?? .title3
8585
return HGroupItem(

Sources/EpoxyBars/BarInstaller/BarWrapperView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public final class BarWrapperView: UIView {
8484

8585
guard let view = view else { return nil }
8686

87-
/// We allow bar views to recieve touches outside of this wrapper,
87+
/// We allow bar views to receive touches outside of this wrapper,
8888
/// so we manually hit test the bar view.
8989
return view.hitTest(view.convert(point, from: self), with: event)
9090
}
@@ -188,7 +188,7 @@ public final class BarWrapperView: UIView {
188188
if !oldValue.isDiffableItemEqual(to: model) {
189189
model.configureContent(view, traitCollection: traitCollection, animated: animated)
190190
}
191-
// The behavior is configured regardless of content equality sice behavior is not equatable.
191+
// The behavior is configured regardless of content equality since behavior is not equatable.
192192
model.configureBehavior(view, traitCollection: traitCollection)
193193
} else {
194194
let view = makeView(

Sources/EpoxyBars/BarModel/BarModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public struct BarModel<View: UIView>: ViewEpoxyModeled {
3434
/// - dataID: An optional ID that uniquely identifies this bar relative to other bars in the
3535
/// same bar stack.
3636
/// - content: The content of the bar view that will be applied to the view in the `setContent`
37-
/// closure whenver it has changed.
37+
/// closure whenever it has changed.
3838
/// - setContent: A closure that's called to configure the view with its content, both
3939
/// immediately following its construction in `makeView` and subsequently whenever a new bar
4040
/// model that replaced an old bar model with the same `dataID` has content that is not equal
@@ -65,7 +65,7 @@ public struct BarModel<View: UIView>: ViewEpoxyModeled {
6565
/// - params: The parameters used to construct an instance of the view, passed into the
6666
/// `makeView` function and used as a view reuse identifier.
6767
/// - content: The content of the bar view that will be applied to the view in the
68-
/// `setContent` closure whenver it has changed.
68+
/// `setContent` closure whenever it has changed.
6969
/// - makeView: A closure that's called with `params` to construct view instances as required.
7070
/// - setContent: A closure that's called to configure the view with its content, both
7171
/// immediately following its construction in `makeView` and subsequently whenever a new bar

Sources/EpoxyCollectionView/Models/ItemModel/ItemModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public struct ItemModel<View: UIView>: ViewEpoxyModeled {
3131
/// - dataID: An ID that uniquely identifies this item relative to other items in the
3232
/// same collection.
3333
/// - content: The content of the item view that will be applied to the view in the
34-
/// `setContent` closure whenver it has changed.
34+
/// `setContent` closure whenever it has changed.
3535
/// - setContent: A closure that's called to configure the view with its content, both
3636
/// immediately following its construction in `makeView` and subsequently whenever a new item
3737
/// model that replaced an old item model with the same `dataID` has content that is not equal
@@ -60,7 +60,7 @@ public struct ItemModel<View: UIView>: ViewEpoxyModeled {
6060
/// - params: The parameters used to construct an instance of the view, passed into the
6161
/// `makeView` function and used as a view reuse identifier.
6262
/// - content: The content of the item view that will be applied to the view in the
63-
/// `setContent` closure whenver it has changed.
63+
/// `setContent` closure whenever it has changed.
6464
/// - makeView: A closure that's called with `params` to construct view instances as required.
6565
/// - setContent: A closure that's called to configure the view with its content, both
6666
/// immediately following its construction in `makeView` and subsequently whenever a new item

Sources/EpoxyCollectionView/Models/SupplementaryItemModel/SupplementaryItemModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public struct SupplementaryItemModel<View: UIView>: ViewEpoxyModeled {
3131
/// - dataID: An ID that uniquely identifies this item relative to other items in the
3232
/// same collection.
3333
/// - content: The content of the item view that will be applied to the view in the
34-
/// `setContent` closure whenver it has changed.
34+
/// `setContent` closure whenever it has changed.
3535
/// - setContent: A closure that's called to configure the view with its content, both
3636
/// immediately following its construction in `makeView` and subsequently whenever a new item
3737
/// model that replaced an old item model with the same `dataID` has content that is not equal
@@ -60,7 +60,7 @@ public struct SupplementaryItemModel<View: UIView>: ViewEpoxyModeled {
6060
/// - params: The parameters used to construct an instance of the view, passed into the
6161
/// `makeView` function and used as a view reuse identifier.
6262
/// - content: The content of the item view that will be applied to the view in the
63-
/// `setContent` closure whenver it has changed.
63+
/// `setContent` closure whenever it has changed.
6464
/// - makeView: A closure that's called with `params` to construct view instances as required.
6565
/// - setContent: A closure that's called to configure the view with its content, both
6666
/// immediately following its construction in `makeView` and subsequently whenever a new item

Sources/EpoxyCore/Diffing/Collection+Diff.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ extension Collection where Element: DiffableSection, Index == Int {
203203

204204
// MARK: - Entry
205205

206-
/// A bookkeeping refrence type for the diffing algorithm.
206+
/// A bookkeeping reference type for the diffing algorithm.
207207
private final class Entry {
208208

209209
// MARK: Internal

Sources/EpoxyCore/Model/Providers/WillDisplayProviding.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ extension CallbackContextEpoxyModeled where Self: WillDisplayProviding {
1717
// MARK: Public
1818

1919
/// A closure that's called when a view is about to be displayed, before it has been added to the
20-
/// view hierarcy.
20+
/// view hierarchy.
2121
public typealias WillDisplay = (_ context: CallbackContext) -> Void
2222

2323
/// A closure that's called when the view is about to be displayed, before it has been added to
24-
/// the view hierarcy.
24+
/// the view hierarchy.
2525
public var willDisplay: WillDisplay? {
2626
get { self[willDisplayProperty] }
2727
set { self[willDisplayProperty] = newValue }

Sources/EpoxyLayoutGroups/Constrainable/Constrainable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import UIKit
66

77
// MARK: - Constrainable
88

9-
/// Defines something that can be constrainted with AutoLayout
9+
/// Defines something that can be constrained with AutoLayout
1010
public protocol Constrainable {
1111
var leadingAnchor: NSLayoutXAxisAnchor { get }
1212
var trailingAnchor: NSLayoutXAxisAnchor { get }

Sources/EpoxyLayoutGroups/Groups/HGroup.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public final class HGroup: UILayoutGuide, Constrainable, InternalGroup {
4343
/// - alignment: The alignment used within the group. Individual item alignments will
4444
/// take precedence over this value
4545
/// - accessibilityAlignment: The accessibility alignment for the items within a group.
46-
/// these will only be used when `reflowsForAccessibiltyTypeSizes` is `true`
46+
/// these will only be used when `reflowsForAccessibilityTypeSizes` is `true`
4747
/// and when the `preferredContentSizeCategory.isAccessibilityCategory` is `true`.
4848
/// These will also be used if `forceVerticalAccessibilityLayout` is set to `true`.
4949
/// Individual item alignments will take precedence over this value
@@ -81,7 +81,7 @@ public final class HGroup: UILayoutGuide, Constrainable, InternalGroup {
8181
/// - alignment: The alignment used within the group. Individual item alignments will
8282
/// take precedence over this value
8383
/// - accessibilityAlignment: The accessibility alignment for the items within a group.
84-
/// these will only be used when `reflowsForAccessibiltyTypeSizes` is `true`
84+
/// these will only be used when `reflowsForAccessibilityTypeSizes` is `true`
8585
/// and when the `preferredContentSizeCategory.isAccessibilityCategory` is `true`.
8686
/// These will also be used if `forceVerticalAccessibilityLayout` is set to `true`.
8787
/// Individual item alignments will take precedence over this value
@@ -118,14 +118,14 @@ public final class HGroup: UILayoutGuide, Constrainable, InternalGroup {
118118
/// - alignment: The alignment used within the group. Individual item alignments will
119119
/// take precedence over this value
120120
/// - accessibilityAlignment: The accessibility alignment for the items within a group.
121-
/// these will only be used when `reflowsForAccessibiltyTypeSizes` is `true`
121+
/// these will only be used when `reflowsForAccessibilityTypeSizes` is `true`
122122
/// and when the `preferredContentSizeCategory.isAccessibilityCategory` is `true`.
123123
/// These will also be used if `forceVerticalAccessibilityLayout` is set to `true`.
124124
/// Individual item alignments will take precedence over this value.
125125
/// The default value of this property is `.leading`
126126
/// - spacing: the spacing between items of the group
127127
/// - reflowsForAccessibilityTypeSizes: whether or not this group should reflow when DynamicType
128-
/// is enabled and is an accessiblity size category.
128+
/// is enabled and is an accessibility size category.
129129
/// The default value is `true`
130130
/// - forceVerticalAccessibilityLayout: force the group to use the the vertical accessibility layout
131131
/// - animation: define style properties for animated group updates, with a default `spring` animation curve.

Sources/EpoxyLayoutGroups/Models/GroupItem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ extension GroupItem where ItemType: UIView {
150150
/// Set the content compression resistance priority for the underlying UIView.
151151
/// Calling this method on a GroupItem for a non-UIView class will do nothing.
152152
/// - Parameters:
153-
/// - priority: the content compression resitance priority
153+
/// - priority: the content compression resistance priority
154154
/// - axis: the axis this priority should be applied to
155155
/// - Returns: a copy of the model with the priority set
156156
public func contentCompressionResistancePriority(

Sources/EpoxyLayoutGroups/Providers/AccessibilityAlignmentProviding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extension EpoxyModeled where Self: AccessibilityAlignmentProviding {
2828
set { self[accessibilityAlignmentProperty] = newValue }
2929
}
3030

31-
/// Returns a copy of this model replacing the `accessibiltyAlignment` value
31+
/// Returns a copy of this model replacing the `accessibilityAlignment` value
3232
/// with the one provided.
3333
public func accessibilityAlignment(_ value: VGroup.ItemAlignment?) -> Self {
3434
copy(updating: accessibilityAlignmentProperty, to: value)

Sources/EpoxyLayoutGroups/Providers/ReflowsForAccessibilityTypeSizeProviding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public protocol ReflowsForAccessibilityTypeSizeProviding {
1010
/// Only used in HGroup. Whether or not the HGroup should reflow for accessibility
1111
/// type sizes. When this value is `true` the `HGroup` will reflow when
1212
/// `preferredContentSizeCategory.isAccessibilityCategory` is `true`. The `HGroup` reflows
13-
/// to model a `VGroup` and uses the `accessibiltyAlignment` value to determine item alignments.
13+
/// to model a `VGroup` and uses the `accessibilityAlignment` value to determine item alignments.
1414
var reflowsForAccessibilityTypeSizes: Bool { get }
1515
}
1616

Sources/EpoxyLayoutGroups/Types/LayoutGroupUpdateAnimation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extension LayoutGroupUpdateAnimation {
3434
/// - duration: a TimeInterval for animation duration, with a default value of `0.5`
3535
/// - delay: a TimeInterval for animation duration, with a default value of `0.0`
3636
/// - dampingRatio: a value for spring damping ratio, with a default value of `1.0`
37-
/// - initialSpringVelocity: a value for initial spring velocity, wiht a default value of `0.0`
37+
/// - initialSpringVelocity: a value for initial spring velocity, with a default value of `0.0`
3838
public static func spring(
3939
duration: TimeInterval = 0.5,
4040
delay: TimeInterval = 0.0,

Sources/EpoxyNavigationController/NavigationQueue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import UIKit
99
/// The interface that's available to a `NavigationQueue` to manage the visible view controllers
1010
/// within a navigation stack.
1111
///
12-
/// Rougly matches the API of `UINavigationController`.
12+
/// Roughly matches the API of `UINavigationController`.
1313
protocol NavigationInterface: AnyObject {
1414
/// The active transition coordinator object.
1515
var transitionCoordinator: UIViewControllerTransitionCoordinator? { get }

Tests/EpoxyTests/CoreTests/CollectionDiffSpec.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ final class CollectionDiffSpec: QuickSpec {
8989
]
9090

9191
describe("makeChangeset") {
92-
context("with called on an indentical collection") {
92+
context("with called on an identical collection") {
9393
it("returns an empty changeset") {
9494
let changeset = intArray.makeChangeset(from: intArray)
9595
expect(changeset.inserts).to(beEmpty())
@@ -550,7 +550,7 @@ final class CollectionDiffSpec: QuickSpec {
550550
}
551551

552552
describe("makeSectionedChangeset") {
553-
context("with called on an indentical collection") {
553+
context("with called on an identical collection") {
554554
it("returns an empty changeset") {
555555
let changeset = testSectionedDiffableArray.makeSectionedChangeset(
556556
from: testSectionedDiffableArray)

Tests/EpoxyTests/LayoutGroupsTests/HGroupSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ final class HGroupSpec: QuickSpec {
112112
}
113113
}
114114

115-
// MARK: reflowsForAccessibiltiyTypeSizes = true
115+
// MARK: reflowsForAccessibilityTypeSizes = true
116116

117117
describe("when reflowsForAccessibilityTypeSizes is true") {
118118
describe("when the preferred type size is not an accessibility size") {

Tests/EpoxyTests/NavigationControllerTests/StubTransitionCoordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ extension StubTransitionCoordinator: UIViewControllerTransitionCoordinator {
7373

7474
// swiftlint:disable unavailable_function
7575
func notifyWhenInteractionChanges(_: @escaping (UIViewControllerTransitionCoordinatorContext) -> Void) {
76-
fatalError("Not implmented")
76+
fatalError("Not implemented")
7777
}
7878

7979
func viewController(forKey key: UITransitionContextViewControllerKey) -> UIViewController? {

0 commit comments

Comments
 (0)