Skip to content

Commit

Permalink
Release 1.0.10 - closes #52 and fixes #54
Browse files Browse the repository at this point in the history
  • Loading branch information
xornorik committed Sep 30, 2020
1 parent 004d87a commit 6eb9256
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SVPinView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Pod::Spec.new do |s|

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

s.homepage = "https://github.com/xornorik/SVPinView"
Expand Down
67 changes: 67 additions & 0 deletions SVPinView.xcodeproj/xcshareddata/xcschemes/SVPinView.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ACE199BD204556340041203C"
BuildableName = "SVPinView.framework"
BlueprintName = "SVPinView"
ReferencedContainer = "container:SVPinView.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ACE199BD204556340041203C"
BuildableName = "SVPinView.framework"
BlueprintName = "SVPinView"
ReferencedContainer = "container:SVPinView.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
1 change: 1 addition & 0 deletions SVPinView/Example/SVPinViewExample/PinViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class PinViewController: UIViewController {
pinView.fieldCornerRadius = 0
pinView.activeFieldCornerRadius = 0
pinView.style = style
@unknown default: break
}
clearPin()
}
Expand Down
4 changes: 2 additions & 2 deletions SVPinView/Source/Classes/SVPinView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private class SVPinViewFlowLayout: UICollectionViewFlowLayout {
override var flipsHorizontallyInOppositeLayoutDirection: Bool { return true }
}

@objc
@objcMembers
public class SVPinView: UIView {

// MARK: - Private Properties -
Expand Down Expand Up @@ -442,7 +442,7 @@ extension SVPinView : UITextFieldDelegate
}

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

0 comments on commit 6eb9256

Please sign in to comment.