Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Currency text field formatter available for UIKit and SwiftUI 💶✏️

License

NotificationsYou must be signed in to change notification settings

marinofelipe/CurrencyText

Repository files navigation

Build statusCoverate statusSwiftPlatformSwift Package ManagerCocoaPods CompatibleTwitter

CurrencyText provides lightweight libraries for formating text field text as currency, available for bothUIKit andSwiftUI.

Its main core, theCurrencyFormatter class, can also be useda part from text fields to format any value that can be monetary represented.

If you need to present currency formatted text or allow users to input currency data,CurrencyText is going to help you do it in a readable and configurable matter.

Documentation

For details on how to useCurrencyText libraries please refer tothe docs.

Installation

Swift Package Manager

To install it using Swift Package Manager, just add this repository through Xcode built-inSwift Packages, or by manually adding it to yourPackage.swift Package's dependencies:

dependencies:[.package(    url:"https://github.com/marinofelipe/CurrencyText.git",.upToNextMinor(from:.init(2,1,0))].target(    name:"MyTarget",    dependencies:[    // Can be imported to consume the formatter in insolation.target(name:"CurrencyFormatter"),        // UIKit library - Provide access to "CurrencyFormatter" and "CurrencyUITextFieldDelegate" targets.target(name:"CurrencyText"),        // SwiftUI library - Provide access to "CurrencyFormatter" and "CurrencyTextField" targets.target(name:"CurrencyTextSwiftUI")],...)

Install via CocoaPods

To integrateCurrencyText using CocoaPods, specify it, one or more of its sub-specs in yourPodfile:

# Podfileuse_frameworks!target'YOUR_TARGET_NAME'dopod'CurrencyText'# sub-specs# pod 'CurrencyText/CurrencyFormatter'# pod 'CurrencyText/CurrencyUITextField'# pod 'CurrencyText/CurrencyTextField'end

Contributing

Contributions and feedbacks are always welcome. Please feel free to fork, follow, open issues and pull requests. The issues, milestones, and what we are currently working on can be seen in the mainProject.

Special Thanks

To@malcommac for his awesome work withSwiftRichString andSwiftDate, that inspired me when creating this project.Also tomyanalysis for contributing so much by finding issues and giving nice suggestions.

Copyright

CurrencyText is released under the MIT license.See LICENSE for details.

Felipe Marino:felipemarino91@gmail.com,@_marinofelipe


[8]ページ先頭

©2009-2025 Movatter.jp