Skip to content

Commit 46347da

Browse files
authored
Fix all comments misspellings. (SwiftKickMobile#456)
* Fix all comments misspellings. * Fix spell of `additionalAccessibilityElements`. Co-authored-by: Seyed Mojtaba Hosseini Zeidabadi <chenzook@gmail.com>
1 parent e7d7e00 commit 46347da

6 files changed

+16
-16
lines changed

SwiftMessages/AccessibleMessage.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ import Foundation
1616
public protocol AccessibleMessage {
1717
var accessibilityMessage: String? { get }
1818
var accessibilityElement: NSObject? { get }
19-
var additonalAccessibilityElements: [NSObject]? { get }
19+
var additionalAccessibilityElements: [NSObject]? { get }
2020
}

SwiftMessages/Animator.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public protocol AnimationDelegate: class {
1818

1919
/**
2020
An option set representing the known types of safe area conflicts
21-
that could require margin adustments on the message view in order to
21+
that could require margin adjustments on the message view in order to
2222
get the layouts to look right.
2323
*/
2424
public struct SafeZoneConflicts: OptionSet {
@@ -71,12 +71,12 @@ public protocol Animator: class {
7171

7272
func hide(context: AnimationContext, completion: @escaping AnimationCompletion)
7373

74-
/// The show animation duration. If the animation duration is unknown, such as if using `UIDynamnicAnimator`,
75-
/// then profide an estimate. This value is used by `SwiftMessagesSegue`.
74+
/// The show animation duration. If the animation duration is unknown, such as if using `UIDynamicAnimator`,
75+
/// then provide an estimate. This value is used by `SwiftMessagesSegue`.
7676
var showDuration: TimeInterval { get }
7777

78-
/// The hide animation duration. If the animation duration is unknown, such as if using `UIDynamnicAnimator`,
79-
/// then profide an estimate. This value is used by `SwiftMessagesSegue`.
78+
/// The hide animation duration. If the animation duration is unknown, such as if using `UIDynamicAnimator`,
79+
/// then provide an estimate. This value is used by `SwiftMessagesSegue`.
8080
var hideDuration: TimeInterval { get }
8181
}
8282

SwiftMessages/Identifiable.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Foundation
1414
representation of the content of the message view. For example, `MessageView`, combines
1515
the title and message body text.
1616

17-
This protocol is optional. Messave views that don't adopt `Identifiable` will not
17+
This protocol is optional. Message views that don't adopt `Identifiable` will not
1818
have duplicates removed.
1919
*/
2020
public protocol Identifiable {

SwiftMessages/MessageView.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ open class MessageView: BaseView, Identifiable, AccessibleMessage {
8888

8989
/**
9090
An optional prefix for the `accessibilityMessage` that can
91-
be used to futher clarify the message for VoiceOver. For example,
91+
be used to further clarify the message for VoiceOver. For example,
9292
the view's background color or icon might convey that a message is
9393
a warning, in which case one may specify the value "warning".
9494
*/
@@ -108,7 +108,7 @@ open class MessageView: BaseView, Identifiable, AccessibleMessage {
108108
return backgroundView
109109
}
110110

111-
open var additonalAccessibilityElements: [NSObject]? {
111+
open var additionalAccessibilityElements: [NSObject]? {
112112
var elements: [NSObject] = []
113113
func getAccessibleSubviews(view: UIView) {
114114
for subview in view.subviews {
@@ -206,7 +206,7 @@ extension MessageView {
206206
/*
207207
MARK: - Layout adjustments
208208

209-
This extention provides a few convenience functions for adjusting the layout.
209+
This extension provides a few convenience functions for adjusting the layout.
210210
*/
211211

212212
extension MessageView {
@@ -236,7 +236,7 @@ extension MessageView {
236236
/*
237237
MARK: - Theming
238238

239-
This extention provides a few convenience functions for setting styles,
239+
This extension provides a few convenience functions for setting styles,
240240
colors and icons. You are encouraged to write your own such functions
241241
if these don't exactly meet your needs.
242242
*/

SwiftMessages/Presenter.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class Presenter: NSObject {
175175

176176
private func showAccessibilityFocus() {
177177
guard let accessibleMessage = view as? AccessibleMessage,
178-
let focus = accessibleMessage.accessibilityElement ?? accessibleMessage.additonalAccessibilityElements?.first else { return }
178+
let focus = accessibleMessage.accessibilityElement ?? accessibleMessage.additionalAccessibilityElements?.first else { return }
179179
UIAccessibility.post(notification: UIAccessibility.Notification.layoutChanged, argument: focus)
180180
}
181181

@@ -388,7 +388,7 @@ class Presenter: NSObject {
388388
}
389389
elements.append(element)
390390
}
391-
if let additional = accessibleMessage.additonalAccessibilityElements {
391+
if let additional = accessibleMessage.additionalAccessibilityElements {
392392
elements += additional
393393
}
394394
} else {

SwiftMessages/SwiftMessages.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ open class SwiftMessages {
5555
appropriate one is found. Otherwise, it is displayed in a new window
5656
at level `UIWindow.Level.normal`. Use this option to automatically display
5757
under bars, where applicable. Because this option involves a top-down
58-
search, an approrpiate context might not be found when the view controller
59-
heirarchy incorporates custom containers. If this is the case, the
58+
search, an appropriate context might not be found when the view controller
59+
hierarchy incorporates custom containers. If this is the case, the
6060
.ViewController option can provide a more targeted context.
6161
*/
6262
case automatic
@@ -87,7 +87,7 @@ open class SwiftMessages {
8787
appropriate one is found using the given view controller as a starting
8888
point and searching up the parent view controller chain. Otherwise, it
8989
is displayed in the given view controller's view. This option can be used
90-
for targeted placement in a view controller heirarchy.
90+
for targeted placement in a view controller hierarchy.
9191
*/
9292
case viewController(_: UIViewController)
9393

0 commit comments

Comments
 (0)