Skip to content

Commit

Permalink
Use proper private initialiser to fix an infinite loop.
Browse files Browse the repository at this point in the history
Fixes #88
  • Loading branch information
JanGorman committed May 21, 2018
1 parent f447c00 commit a196d4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Agrume.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Agrume"
s.version = "5.0.2"
s.version = "5.0.3"
s.summary = "An iOS image viewer written in Swift."
s.swift_version = "4.1"

Expand Down
2 changes: 1 addition & 1 deletion Agrume/Agrume.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public final class Agrume: UIViewController {
/// - Parameter startIndex: The optional start index when showing multiple images
/// - Parameter background: The background configuration
public convenience init(dataSource: AgrumeDataSource, startIndex: Int = 0, background: Background = .colored(.black)) {
self.init(dataSource: dataSource, startIndex: startIndex, background: background)
self.init(images: nil, dataSource: dataSource, startIndex: startIndex, background: background)
}

/// Initialize with an array of images
Expand Down

0 comments on commit a196d4c

Please sign in to comment.