Skip to content

Commit 6eb9256

Browse files
committed
Release 1.0.10 - closes #52 and fixes #54
1 parent 004d87a commit 6eb9256

File tree

4 files changed

+71
-3
lines changed

4 files changed

+71
-3
lines changed

SVPinView.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pod::Spec.new do |s|
33

44
s.name = "SVPinView"
5-
s.version = "1.0.9"
5+
s.version = "1.0.10"
66
s.summary = "SVPinView is a customisable library used for accepting alphanumeric pins or one-time passwords."
77

88
s.homepage = "https://github.com/xornorik/SVPinView"
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1200"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "ACE199BD204556340041203C"
18+
BuildableName = "SVPinView.framework"
19+
BlueprintName = "SVPinView"
20+
ReferencedContainer = "container:SVPinView.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
</LaunchAction>
44+
<ProfileAction
45+
buildConfiguration = "Release"
46+
shouldUseLaunchSchemeArgsEnv = "YES"
47+
savedToolIdentifier = ""
48+
useCustomWorkingDirectory = "NO"
49+
debugDocumentVersioning = "YES">
50+
<MacroExpansion>
51+
<BuildableReference
52+
BuildableIdentifier = "primary"
53+
BlueprintIdentifier = "ACE199BD204556340041203C"
54+
BuildableName = "SVPinView.framework"
55+
BlueprintName = "SVPinView"
56+
ReferencedContainer = "container:SVPinView.xcodeproj">
57+
</BuildableReference>
58+
</MacroExpansion>
59+
</ProfileAction>
60+
<AnalyzeAction
61+
buildConfiguration = "Debug">
62+
</AnalyzeAction>
63+
<ArchiveAction
64+
buildConfiguration = "Release"
65+
revealArchiveInOrganizer = "YES">
66+
</ArchiveAction>
67+
</Scheme>

SVPinView/Example/SVPinViewExample/PinViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ class PinViewController: UIViewController {
123123
pinView.fieldCornerRadius = 0
124124
pinView.activeFieldCornerRadius = 0
125125
pinView.style = style
126+
@unknown default: break
126127
}
127128
clearPin()
128129
}

SVPinView/Source/Classes/SVPinView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private class SVPinViewFlowLayout: UICollectionViewFlowLayout {
3434
override var flipsHorizontallyInOppositeLayoutDirection: Bool { return true }
3535
}
3636

37-
@objc
37+
@objcMembers
3838
public class SVPinView: UIView {
3939

4040
// MARK: - Private Properties -
@@ -442,7 +442,7 @@ extension SVPinView : UITextFieldDelegate
442442
}
443443

444444
public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
445-
if (string == UIPasteboard.general.string) || (isContentTypeOneTimeCode && string.count >= pinLength) {
445+
if (string.count >= pinLength) && (string == UIPasteboard.general.string || isContentTypeOneTimeCode) {
446446
textField.resignFirstResponder()
447447
DispatchQueue.main.async { self.pastePin(pin: string) }
448448
return false

0 commit comments

Comments
 (0)