The numbers that the user enters in the field are automatically formatted to display in the VNĐ amount format.
Source files
Add new swift package by link: Xcode -> File -> Swift packages -> Add package Dependency... and parse this link:
https://github.com/ios-lib/VNDTextField
Or clone this repository or download it in zip-file. Then you will find source files under InputTextField directory. Copy them to your project.
Sample here: https://github.com/ios-lib/VNDDemo/tree/main
Import VNDTextField and add it programatically to your view or add UITextField in your Storyboard, and then change the custom class to TextField
import VNDTextField
@IBOutlet weak var myTextfield: VNDTextField!
myTextfield.setButtonBackGroundColor(backgroudColor: .darkGray)
myTextfield.setButtonCornerRadius(cornerRadius: 10)
Create by: SunPencil
website: codetoanbug.com