PLCurrencyTextField
  • October 21, 2023

Summary


PLCurrencyTextField provides simple and user friendly support for the amount in the currency.

Usage


To start using the component add it to your project using CocoaPods, Carthage or manually then to create PLCurrencyTextField instance put UITextField using Interface builder and change its class to PLCurrencyTextField in Identity inspector or do it from code.

Configuration

  • minimumFractionDigits – Configure the minimum fraction digits count that will be used by the internal number formatter.
  • maximumFractionDigits – Configure the maximum fraction digits count that will be used by the internal number formatter.
  • locale – Configure locale that will be used by the internal number formatter.

Helpers

  • numberValue – Returns current number value.

Requirements


Swift 2.2, iOS 8.0

Installation


CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate PLCurrencyTextField into your Xcode project using CocoaPods, specify it in your Podfile:

source ‘https://github.com/CocoaPods/Specs.git’
platform :ios, ‘9.0’
use_frameworks!

target ‘<Your Target Name>’ do
pod ‘PLCurrencyTextField’
end

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate PLCurrencyTextField into your Xcode project using Carthage, specify it in your Cartfile:

github “PLCurrencyTextField”

Run carthage update to build the framework and drag the built PLCurrencyTextField.framework into your Xcode project.

Manual

You can download the latest files from our Releases page. After doing so, drag PLCurrencyTextField.xcodeproj into your project in Xcode, and for your project target on General tab in Embedded Binaries section add PLCurrencyTextField.framework. Example project is configured the same way, so you have the crib sheet.

GitHub


View Github

#animation #awesemetextfield #carthage #cocoapods #currencytextfield #customtextfield #customwidgets #facetedsearch #geosearch #growingtextview #instantsearch #interfacebuilder #ios #ioslibrary #iosswift #opensource #passwordtextfield #placeholder #placeholdertextview #realmswift #search #searchengine #searchinterface #searchsynonyms #styledtext #swift #swiftframework #swiftlibrary #swiftpackagemanager #swiftui #swiftuicomponents #textexpansion #textfield #texture #textview #tjtextfield #ui #uikit #uitextfield #uitextfieldnavigation #uitextview #uitextviewalgolia #widgets #xcode
YOU MIGHT ALSO LIKE...
exyte

     

camerakit-ios

CameraKit helps you add reliable camera to your app quickly. Our open source camera platform provides consistent capture results, service ...

HybridCamera

[video width="192" height="416" mp4="https://swiftgit.com/wp-content/uploads/2024/12/68747470733a2f2f7261776769742e636f6d2f7374796c656b69742f696d672f6d61737465722f7669645f6564697465645f325f326d622e676966.mp4"][/video]

TakeASelfie

An iOS framework that uses the front camera, detects your face and takes a selfie. This api opens the front ...

iOS-Depth-Sampler

Code examples of Depth APIs in iOS