diff --git a/README.md b/README.md index cc09c4b..44d627b 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 } diff --git a/Serrata.podspec b/Serrata.podspec index 1906731..971fa10 100644 --- a/Serrata.podspec +++ b/Serrata.podspec @@ -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 diff --git a/Serrata/Sources/SlideLeaf.swift b/Serrata/Sources/SlideLeaf.swift index 8a7fcfe..f93f5f7 100644 --- a/Serrata/Sources/SlideLeaf.swift +++ b/Serrata/Sources/SlideLeaf.swift @@ -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 @@ -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 } diff --git a/Serrata/Sources/SlideLeafCell.swift b/Serrata/Sources/SlideLeafCell.swift index 2d8735b..e2125f2 100644 --- a/Serrata/Sources/SlideLeafCell.swift +++ b/Serrata/Sources/SlideLeafCell.swift @@ -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