diff --git a/WordPress/Classes/Extensions/Array.swift b/WordPress/Classes/Extensions/Array.swift index 74e7a1764113..cef35e0d8d55 100644 --- a/WordPress/Classes/Extensions/Array.swift +++ b/WordPress/Classes/Extensions/Array.swift @@ -12,4 +12,10 @@ extension Array { } } } + + /// Safely returns an index from an array. + /// + subscript(safe index: Int) -> Element? { + return index >= 0 && index < count ? self[index] : nil + } } diff --git a/WordPress/Classes/ViewRelated/Reader/Reader.storyboard b/WordPress/Classes/ViewRelated/Reader/Reader.storyboard index 8fc796481354..f8302a237956 100644 --- a/WordPress/Classes/ViewRelated/Reader/Reader.storyboard +++ b/WordPress/Classes/ViewRelated/Reader/Reader.storyboard @@ -1,10 +1,11 @@ - + - + + @@ -18,11 +19,11 @@ - + - + @@ -55,7 +56,7 @@ - + @@ -232,14 +233,14 @@ - + @@ -393,14 +394,14 @@ - + - + @@ -442,12 +443,20 @@ + + + + + + + + - + @@ -473,24 +482,24 @@ - + - + - +