From 2c513d54d0431f8edf51c9385e03d8bd63e5c6fc Mon Sep 17 00:00:00 2001 From: Natan Rolnik Date: Mon, 27 Aug 2018 13:04:45 +0300 Subject: [PATCH] Fixes inifinite typo --- .../Cells/DisplayDurationSelectionTableViewCell.swift | 2 +- .../SwiftEntryKit/Presets/PresetsData/PresetsDataSource.swift | 2 +- Example/SwiftEntryKit/Presets/PresetsViewController.swift | 2 +- Example/Tests/AttributesCreationTests.swift | 2 +- README.md | 2 +- Source/Model/EntryAttributes/EKAttributes.swift | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Example/SwiftEntryKit/Playground/Cells/DisplayDurationSelectionTableViewCell.swift b/Example/SwiftEntryKit/Playground/Cells/DisplayDurationSelectionTableViewCell.swift index ffe3df62..d2763833 100644 --- a/Example/SwiftEntryKit/Playground/Cells/DisplayDurationSelectionTableViewCell.swift +++ b/Example/SwiftEntryKit/Playground/Cells/DisplayDurationSelectionTableViewCell.swift @@ -14,7 +14,7 @@ class DisplayDurationSelectionTableViewCell: SelectionTableViewCell { super.configure(attributesWrapper: attributesWrapper) titleValue = "Display Duration" descriptionValue = "How long the entry is displayed" - insertSegments(by: ["2 Seconds", "4 Seconds", "Infinate"]) + insertSegments(by: ["2 Seconds", "4 Seconds", "infinite"]) selectSegment() } diff --git a/Example/SwiftEntryKit/Presets/PresetsData/PresetsDataSource.swift b/Example/SwiftEntryKit/Presets/PresetsData/PresetsDataSource.swift index 66475275..ecdcd131 100644 --- a/Example/SwiftEntryKit/Presets/PresetsData/PresetsDataSource.swift +++ b/Example/SwiftEntryKit/Presets/PresetsData/PresetsDataSource.swift @@ -183,7 +183,7 @@ struct PresetsDataSource { attributes.popBehavior = .animated(animation: .translation) attributes.entryBackground = .color(color: .pinky) attributes.statusBar = .light - descriptionString = "Appears for an infinate duration" + descriptionString = "Appears for an infinite duration" descriptionThumb = ThumbDesc.topNote.rawValue description = .init(with: attributes, title: "Top Processing Note", description: descriptionString, thumb: descriptionThumb) notes.append(description) diff --git a/Example/SwiftEntryKit/Presets/PresetsViewController.swift b/Example/SwiftEntryKit/Presets/PresetsViewController.swift index 37a5c7b5..f7e0543a 100644 --- a/Example/SwiftEntryKit/Presets/PresetsViewController.swift +++ b/Example/SwiftEntryKit/Presets/PresetsViewController.swift @@ -60,7 +60,7 @@ class PresetsViewController: UIViewController { SwiftEntryKit.display(entry: contentView, using: attributes) } - // Bumps an infinate processing note + // Bumps an infinite processing note private func showProcessingNote(attributes: EKAttributes) { let text = "Waiting for the goodies to arrive!" let style = EKProperty.LabelStyle(font: MainFont.light.with(size: 14), color: .white, alignment: .center) diff --git a/Example/Tests/AttributesCreationTests.swift b/Example/Tests/AttributesCreationTests.swift index 36c57cf5..c38d647e 100644 --- a/Example/Tests/AttributesCreationTests.swift +++ b/Example/Tests/AttributesCreationTests.swift @@ -112,7 +112,7 @@ class AttributesCreation: QuickSpec { attributes = EKAttributes() } - it("displays for infinate time") { + it("displays for infinite time") { duration = .infinity attributes.displayDuration = duration diff --git a/README.md b/README.md index 407b670e..7155c050 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,7 @@ Display for 2 seconds: attributes.displayDuration = 2 ``` -Display for an infinate duration +Display for an infinite duration ```Swift attributes.displayDuration = .infinity ``` diff --git a/Source/Model/EntryAttributes/EKAttributes.swift b/Source/Model/EntryAttributes/EKAttributes.swift index 020a949e..0288fd61 100644 --- a/Source/Model/EntryAttributes/EKAttributes.swift +++ b/Source/Model/EntryAttributes/EKAttributes.swift @@ -31,7 +31,7 @@ public struct EKAttributes { public var displayPriority = DisplayPriority.normal /** Describes how long the entry is displayed before it is dismissed */ - public var displayDuration: DisplayDuration = 2 // Use .infinity for infinate duration + public var displayDuration: DisplayDuration = 2 // Use .infinity for infinite duration /** The frame attributes of the entry */ public var positionConstraints = PositionConstraints()