Skip to content

Commit

Permalink
Merge pull request #273 from wordpress-mobile/issue/bump-podspec
Browse files Browse the repository at this point in the history
Bump the pod version to 1.11.0-beta.1 and add comments
  • Loading branch information
mindgraffiti authored Aug 10, 2020
2 parents d285c26 + c6caeb0 commit 1850a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WordPressShared.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "WordPressShared"
s.version = "1.10.0-beta.3"
s.version = "1.11.0-beta.1"
s.summary = "Shared components used in building the WordPress iOS apps and other library components."

s.description = <<-DESC
Expand Down
5 changes: 4 additions & 1 deletion WordPressShared/Core/Utility/CollectionType+Helpers.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import Foundation


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

extension Collection {

/// Returns the element at the specified index if it is within bounds, otherwise nil.
///
public subscript (safe index: Index) -> Element? {
return indices.contains(index) ? self[index] : nil
}
Expand Down

0 comments on commit 1850a75

Please sign in to comment.