@@ -112,13 +112,7 @@ public class VNDTextField: UITextField {
112
112
self . button3. layer. cornerRadius = cornerRadius
113
113
self . buttonNeedDisplay ( )
114
114
}
115
-
116
- /// Set symboy
117
- /// - Parameter symbolUppercase: symbol upcase or not
118
- public func setSymbol( symbolUppercase: Bool ) {
119
- Constant . symbolUppercase = symbolUppercase
120
- }
121
-
115
+
122
116
private func buttonNeedDisplay( ) {
123
117
self . button1. setNeedsDisplay ( )
124
118
self . button2. setNeedsDisplay ( )
@@ -179,7 +173,7 @@ public class VNDTextField: UITextField {
179
173
}
180
174
181
175
// remove "đ" from text in textfield
182
- let charecterDeleted = Constant . symbolUppercase ? " Đ " : " đ "
176
+ let charecterDeleted = " đ "
183
177
inputText. removeAll ( where: { charecterDeleted. contains ( $0) } )
184
178
185
179
// remove "." from text in textfield
@@ -253,7 +247,7 @@ public class VNDTextField: UITextField {
253
247
/// - Returns: type currency
254
248
private func formatCurrency( _ inputNumber: Int ) -> String {
255
249
let formatter = NumberFormatter ( )
256
- formatter. currencySymbol = Constant . symbolUppercase ? " Đ " : " đ "
250
+ formatter. currencySymbol = " đ "
257
251
formatter. currencyGroupingSeparator = " . "
258
252
formatter. locale = Locale ( identifier: Constant . PRICE_LOCATION)
259
253
formatter. positiveFormat = " #,##0 ¤ "
0 commit comments