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...
CameraBackground

Features Both front and back camera supported. Flash modes: auto, on, off. Countdown timer. Tap to focus. Pinch to zoom. Usage  

DKCamera

Description A light weight & simple & easy camera for iOS by Swift. It uses CoreMotion framework to detect device orientation, so ...

HorizonSDK-iOS

Horizon SDK is a state of the art real-time video recording / photo shooting iOS library. Some of the features ...

LLSimpleCamera

LLSimpleCamera: A simple customizable camera - video recorder control LLSimpleCamera is a library for creating a customized camera - video ...

RSBarcodes_Swift

RSBarcodes allows you to read 1D and 2D barcodes using the metadata scanning capabilities introduced with iOS 7 and generate ...