Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Uladzislau Abramchuk committed Jan 31, 2018
2 parents 4d299ec + 66243aa commit 892c3f2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
38 changes: 38 additions & 0 deletions SWCardView.podspec
Original file line number Diff line number Diff line change
@@ -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" => "[email protected]" }

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
8 changes: 4 additions & 4 deletions testTind/TinderView/SVSwipeCardsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -22,16 +22,16 @@ 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
}


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
Expand Down

0 comments on commit 892c3f2

Please sign in to comment.