Skip to content

Commit

Permalink
Clarify documentation for delegate methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleweiner committed Feb 22, 2016
1 parent bdc7235 commit 2bbaef4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/KWStepper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import UIKit

/// Optional delegate methods for tailoring the UX.
@objc public protocol KWStepperDelegate {
/// Called when `value` is decremented.
/// Called when `value` is decremented; not when `value` is clamped or wrapped.
optional func KWStepperDidDecrement()

/// Called when `value` is incremented.
/// Called when `value` is incremented; not when `value` is clamped or wrapped.
optional func KWStepperDidIncrement()

/// Called when `value` is clamped to `maximumValue`.
/// Called when `value` is clamped to `maximumValue` via `incrementValue()`.
optional func KWStepperMaxValueClamped()

/// Called when `value` is clamped to `minimumValue`.
/// Called when `value` is clamped to `minimumValue` via `decrementValue()`.
optional func KWStepperMinValueClamped()
}

Expand Down

0 comments on commit 2bbaef4

Please sign in to comment.