Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 1850a75

Browse files
authored
Merge pull request #273 from wordpress-mobile/issue/bump-podspec
Bump the pod version to 1.11.0-beta.1 and add comments
2 parents d285c26 + c6caeb0 commit 1850a75

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

WordPressShared.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WordPressShared"
3-
s.version = "1.10.0-beta.3"
3+
s.version = "1.11.0-beta.1"
44
s.summary = "Shared components used in building the WordPress iOS apps and other library components."
55

66
s.description = <<-DESC

WordPressShared/Core/Utility/CollectionType+Helpers.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import Foundation
22

3+
4+
// MARK: - Collection Type Helpers
5+
//
36
extension BidirectionalCollection {
47
public func lastIndex(where predicate: (Self.Iterator.Element) throws -> Bool) rethrows -> Self.Index? {
58
if let idx = try reversed().firstIndex(where: predicate) {
@@ -10,8 +13,8 @@ extension BidirectionalCollection {
1013
}
1114

1215
extension Collection {
13-
1416
/// Returns the element at the specified index if it is within bounds, otherwise nil.
17+
///
1518
public subscript (safe index: Index) -> Element? {
1619
return indices.contains(index) ? self[index] : nil
1720
}

0 commit comments

Comments
 (0)