-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #491 from willowtreeapps/feature/253/categories-sa…
…yings-empty-state #253 | Enable and update Empty State views for Sayings & Categories
- Loading branch information
Showing
9 changed files
with
88 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// BidirectionalCollection+.swift | ||
// Vocable | ||
// | ||
// Created by Robert Moyer on 3/23/22. | ||
// Copyright © 2022 WillowTree. All rights reserved. | ||
// | ||
|
||
extension BidirectionalCollection { | ||
/// The range spanning all valid indices of the collection | ||
var rangeOfIndices: Range<Index> { | ||
startIndex ..< endIndex | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// StringProtocol+Range.swift | ||
// Vocable | ||
// | ||
// Created by Robert Moyer on 3/22/22. | ||
// Copyright © 2022 WillowTree. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
extension NSRange { | ||
init<S: StringProtocol>(of s: S) { | ||
self.init(s.rangeOfIndices, in: s) | ||
} | ||
|
||
static func entireRange<S: StringProtocol>(of s: S) -> NSRange { | ||
NSRange(s.rangeOfIndices, in: s) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters