Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirDinic committed Sep 20, 2017
1 parent 15d97e1 commit 36678a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WDFlashCard.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|

s.platform = :ios
s.name = "WDFlashCard"
s.version = "1.0.2"
s.version = "1.0.3"
s.summary = "WDFlashCard is a simple lightweight component for displaying flashcards inside iOS apps."

s.description = <<-DESC
Expand Down
14 changes: 12 additions & 2 deletions WDFlashCard/WDFlashCard/WDFlashCardView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,18 @@ open class WDFlashCard: UIView {
}
}

@objc open func resetToInitialState() {
self.flip(rightNow: true)
@objc open func showFrontView() {
if !showFront
{
self.flip(rightNow: true)
}
}

@objc open func showBackView() {
if showFront
{
self.flip(rightNow: true)
}
}

@objc open func flip(rightNow:Bool = false) {
Expand Down

0 comments on commit 36678a7

Please sign in to comment.