diff --git a/SWCardView.podspec b/SWCardView.podspec new file mode 100644 index 0000000..bcf9c08 --- /dev/null +++ b/SWCardView.podspec @@ -0,0 +1,38 @@ +# +# Be sure to run `pod spec lint SWCardView.podspec' to ensure this is a +# valid spec and to remove all comments including this before submitting the spec. +# +# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html +# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ +# + +Pod::Spec.new do |s| + + + s.name = "SWCardView" + s.version = "0.1.0" + s.summary = "Simple way to create view like a badoo or a tinder." + + s.description = <<-DESC +Simple way to create view like a badoo or a tinder. When you swipe that view, it's going out of screen. + DESC + + s.homepage = "https://github.com/abramchuk-v/CardViews" + + + + s.license = { :type => "Apache License", :file => "LICENSE" } + + + + s.author = { "Uladzislau Abramchuk" => "abramchukv97@gmail.com" } + + s.platform = :ios, "10.0" + + + s.source = { :git => "https://github.com/abramchuk-v/CardViews.git", :tag => "0.1.0" } + + s.source_files = "testTind/TinderView/*" + s.swift_version = "3.0" + +end diff --git a/testTind/TinderView/SVSwipeCardsView.swift b/testTind/TinderView/SVSwipeCardsView.swift index 80185fe..4273a00 100644 --- a/testTind/TinderView/SVSwipeCardsView.swift +++ b/testTind/TinderView/SVSwipeCardsView.swift @@ -13,7 +13,7 @@ public enum SwipeMode { case right } -protocol SwipeCardViewDelegate: class { +public protocol SwipeCardViewDelegate: class { func swipedLeft(_ object: Any) func swipedRight(_ object: Any) func cardTapped(_ object: Any) @@ -22,7 +22,7 @@ protocol SwipeCardViewDelegate: class { func nearOfEnd() } -protocol SwipeCardViewDataSource: class { +public protocol SwipeCardViewDataSource: class { func createViewForCard(index: Int, with frame: CGRect) -> UIView func rowCount() -> Int func createViewForOverlay(index: Int, swipe: SwipeMode, with frame: CGRect) -> UIView @@ -30,8 +30,8 @@ protocol SwipeCardViewDataSource: class { public class SwipeCardsView: UIView { - weak var dataSource: SwipeCardViewDataSource? - weak var delegate: SwipeCardViewDelegate? + public weak var dataSource: SwipeCardViewDataSource? + public weak var delegate: SwipeCardViewDelegate? /** Count of visible views.*/ var bufferSize: Int = 3