Skip to content

Commit

Permalink
Add clear functionality in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kpavankotesh committed Jun 30, 2018
1 parent 849ca3a commit 7ade4db
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
9 changes: 9 additions & 0 deletions Example/KWVerificationCodeView/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,22 @@
<segue destination="ViW-Wf-OWW" kind="presentation" id="PCu-5s-Oao"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XUw-3U-0Yz">
<rect key="frame" x="266" y="362" width="34" height="30"/>
<state key="normal" title="clear"/>
<connections>
<action selector="clearButtonTapped:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="h1q-Ts-lAH"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
<constraints>
<constraint firstItem="z9m-CU-XT6" firstAttribute="top" secondItem="Skh-28-8br" secondAttribute="bottom" constant="50" id="3ER-Pd-VZR"/>
<constraint firstItem="ekS-Ew-GpT" firstAttribute="top" secondItem="P6k-pN-VEP" secondAttribute="bottom" constant="22" id="H7u-LC-n82"/>
<constraint firstItem="ekS-Ew-GpT" firstAttribute="top" secondItem="6e0-Am-MUv" secondAttribute="bottom" constant="90" id="HQQ-Ne-ux5"/>
<constraint firstItem="6e0-Am-MUv" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" constant="16" id="K9Y-GQ-xFr"/>
<constraint firstItem="XUw-3U-0Yz" firstAttribute="centerY" secondItem="Skh-28-8br" secondAttribute="centerY" id="Lmb-6J-uxd"/>
<constraint firstItem="XUw-3U-0Yz" firstAttribute="leading" secondItem="Skh-28-8br" secondAttribute="trailing" constant="33.5" id="Lvp-ZH-Nu3"/>
<constraint firstAttribute="trailing" secondItem="6e0-Am-MUv" secondAttribute="trailing" constant="16" id="NnO-Pl-xaO"/>
<constraint firstItem="Skh-28-8br" firstAttribute="top" secondItem="ekS-Ew-GpT" secondAttribute="bottom" constant="22" id="UAT-si-Rcy"/>
<constraint firstItem="Skh-28-8br" firstAttribute="centerX" secondItem="kh9-bI-dsS" secondAttribute="centerX" id="bUo-66-X5C"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ class VerificationCodeViewController: UIViewController {
verificationCodeView.delegate = self

/* Other available options

verificationCodeView.keyboardType = UIKeyboardType.emailAddress

*/
}

Expand All @@ -38,6 +36,10 @@ class VerificationCodeViewController: UIViewController {
present(alertController, animated: true, completion: nil)
}
}

@IBAction func clearButtonTapped(_ sender: UIButton) {
verificationCodeView.clear()
}
}

// MARK: - KWVerificationCodeViewDelegate
Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- KWVerificationCodeView (0.1.7)
- KWVerificationCodeView (0.1.9)

DEPENDENCIES:
- KWVerificationCodeView (from `../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ../

SPEC CHECKSUMS:
KWVerificationCodeView: 291b6b9c82451eef4686a4f409a315a76da74cbc
KWVerificationCodeView: efa0f7833c2d291f166553c36e592048bfb667da

PODFILE CHECKSUM: c5456285278196ae1d72df7acbfd1db2fab11376

Expand Down

0 comments on commit 7ade4db

Please sign in to comment.