Skip to content

Commit 2a0208c

Browse files
authored
Merge pull request #3 from CristianDRM/master
feat: add method to formatt string
2 parents e3d8c93 + 3ab0c36 commit 2a0208c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

GeneralFormatter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'GeneralFormatter'
11-
s.version = '2.0.0'
11+
s.version = '2.0.1'
1212
s.summary = 'A general formatter.'
1313

1414
# This description is used to generate tags and improve search results.

GeneralFormatter/Classes/GeneralFormatter.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public enum GeneralFormatter {
2626
}
2727
}
2828

29+
public func format(value: String) -> String {
30+
return formatter.format(value: value)
31+
}
32+
2933
public func formatTextField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
3034
return formatter.shouldChangeCharacters(of: textField, inRange: range)
3135
}

0 commit comments

Comments
 (0)