Swiftpack.co - jwd-ali/JDAnimatedTextField as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jwd-ali.
jwd-ali/JDAnimatedTextField 1.1.2
Animated Subclass of UITextField created with CABasicAnimation and CAShapeLayer
⭐️ 30
🕓 2 years ago
.package(url: "https://github.com/jwd-ali/JDAnimatedTextField.git", from: "1.1.2")

JDAnimatedTextField

CI Status CocoaPods Version Carthage Compatible License Platform Swift 5.1

JDAnimatedTextField is animateable UITextField that can significantly enhance your user's experiences and set your app apart from the rest of the pack.


It is build using CABasicAnimation and CAShapeLayer through UIBezierpath. Its fun to play with CoreGraphics.It starts slow and By the end, you’ll be able to create stunning graphics for your apps.



Requirements

  • iOS 11.0+ / Mac OS X 10.9+ / watchOS 2.0+ / tvOS 9.0+
  • Xcode 8.0+

Installation

CocoaPods

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

use_frameworks!

pod 'JDAnimatedTextField'

Then, run the following command:

$ pod install

Carthage

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

github "jwd-ali/JDAnimatedTextField"

Swift Package Manager (SPM)

Prerequisites

  • OSX

Update Package.swift

To integrate JDAnimatedTextField in your project, add the proper description to your Package.swift file:

// swift-tools-version:5.0
import PackageDescription

let package = Package(
    name: "YOUR_PROJECT_NAME",
    dependencies: [
        .package(url: "https://github.com/jwd-ali/JDAnimatedTextField.git")
    ],
    targets: [
        .target(
            name: "YOUR_TARGET_NAME",
            dependencies: ["JDAnimatedTextField"]
        ),
        ...
    ]
)

Manually

If you prefer not to use a dependency manager, you can integrate JDCircularProgress into your project manually.

  • Add sources into your project:
    • Drag Sources

Usage

If you are using any dependency manager (pods , carthage , package manager)to integrate JDCircularProgress. Import JDCircularProgress first:

import JDAnimatedTextField

And for Manuall install you dont need to import anything

  • Init your view with JDAnimatedTextField:
  let field = JDAnimatedTextField() 

lineWidth

field.lineWidth = 2

textFieldColor is actually color of shape that is drawn

field.textFieldColor = UIColor.red.withAlphaComponent(0.3)

See the Demo Xcode project its easy to understand with proper comments on properties .. write me if you didn't get anything [email protected]

Congratulations! You're done.

Contributing

I’d love to have help on this project. For small changes please open a pull request, for larger changes please open an issue first to discuss what you’d like to see.

License

JDAnimatedTextField is under MIT. See LICENSE file for more info.

GitHub

link
Stars: 30
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics