GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AlexCatch/ACAnimatedTextField: Animated UITextField

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
ACAnimatedTextField
ACAnimatedTextField
 
 
ACAnimatedTextFieldDemo
ACAnimatedTextFieldDemo
 
 
misc
misc
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 

Repository files navigation

ACAnimatedTextField

ACAnimatedTextField is a subclass of UITextField which replaces a text placeholder with an image.

Installation

ACAnimatedTextField is one file, simply drag and drop ACAnimatedTextField/ACAnimatedTextField.swift into your project and set the class of a UITextField to ACAnimatedTextField

Preview

Preview

Customization

4 things are currently able to be customized.

  • Image
  • Active colour
  • Inactive colour
  • Size of UIImageView

You can either set them via code or user attributes

Interface Builder

userAttributes

Code

demoTextField.activeColour = UIColor.redColor()
demoTextField.inactiveColour = UIColor.greenColor()
demoTextField.textFieldImage = UIImage(named: "locked")
demoTextField.imageWidth = 24
demoTextField.imageHeight = 24

Todo

  • Make textRect change based on size of UIImageView

License

ACAnimatedTextField is under the MIT license. Please check out LICENSE.md for more information

About

Animated UITextField

Resources

Readme
MIT license
Activity

Stars

49 stars

Watchers

0 watching

Forks

8 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.