Skip to content

Commit

Permalink
fix argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
horitaku46 committed Dec 21, 2017
1 parent 0cadbd1 commit 091887d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ import UIKit
public final class SlideLeaf: NSObject {

public var image: UIImage?
public var urlString: String?
public var imageUrlString: String?

public var title: String
public var caption: String
Expand All @@ -108,11 +108,11 @@ public final class SlideLeaf: NSObject {
/// If either title and caption is empty, detailView is not displayed.
///
/// - Parameters:
/// - urlString: To read by a slide. It is displayed by Kingfisher.
/// - imageUrlString: To read by a slide. It is displayed by Kingfisher.
/// - title: Title of the image.
/// - caption: Caption of the image.
public init(urlString: String?, title: String = "", caption: String = "") {
self.urlString = urlString;
public init(imageUrlString: String?, title: String = "", caption: String = "") {
self.imageUrlString = imageUrlString
self.title = title
self.caption = caption
}
Expand Down
2 changes: 1 addition & 1 deletion Serrata.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Serrata"
s.version = "1.0.4"
s.version = "1.0.5"
s.summary = "Slide image viewer library similar to Twitter and LINE."

s.description = <<-DESC
Expand Down
8 changes: 4 additions & 4 deletions Serrata/Sources/SlideLeaf.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import UIKit
public final class SlideLeaf: NSObject {

public var image: UIImage?
public var urlString: String?
public var imageUrlString: String?

public var title: String
public var caption: String
Expand All @@ -32,11 +32,11 @@ public final class SlideLeaf: NSObject {
/// If either title and caption is empty, detailView is not displayed.
///
/// - Parameters:
/// - urlString: To read by a slide. It is displayed by Kingfisher.
/// - imageUrlString: To read by a slide. It is displayed by Kingfisher.
/// - title: Title of the image.
/// - caption: Caption of the image.
public init(urlString: String?, title: String = "", caption: String = "") {
self.urlString = urlString;
public init(imageUrlString: String?, title: String = "", caption: String = "") {
self.imageUrlString = imageUrlString
self.title = title
self.caption = caption
}
Expand Down
2 changes: 1 addition & 1 deletion Serrata/Sources/SlideLeafCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ open class SlideLeafCell: UICollectionViewCell {
if let image = slideLeaf.image {
setImage(image)

} else if let url = slideLeaf.urlString {
} else if let url = slideLeaf.imageUrlString {
activityIndicatorView.startAnimating()
activityIndicatorView.isHidden = false

Expand Down

0 comments on commit 091887d

Please sign in to comment.