Skip to content

Commit

Permalink
Merge pull request #94 from natanrolnik/fix-inifinite-typo
Browse files Browse the repository at this point in the history
Fixes inifinite typo
  • Loading branch information
huri000 authored Aug 28, 2018
2 parents ac72436 + 2c513d5 commit 782f466
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Example/SwiftEntryKit/Presets/PresetsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Example/Tests/AttributesCreationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class AttributesCreation: QuickSpec {
attributes = EKAttributes()
}

it("displays for infinate time") {
it("displays for infinite time") {
duration = .infinity
attributes.displayDuration = duration

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion Source/Model/EntryAttributes/EKAttributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 782f466

Please sign in to comment.