https://github.com/sahilberi/imagetextfield
https://github.com/sahilberi/imagetextfield
border-style ibdesignable storyboard textfield
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sahilberi/imagetextfield
- Owner: Sahilberi
- License: mit
- Created: 2017-02-22T08:54:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-25T11:36:32.000Z (about 9 years ago)
- Last Synced: 2025-11-22T10:21:17.403Z (6 months ago)
- Topics: border-style, ibdesignable, storyboard, textfield
- Language: Swift
- Size: 66.4 KB
- Stars: 29
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ImageTextField
A Designable Textfield For adding textfield leftview and rightview images in storyboard for swift 3.0 .
Using ImageTextField you can set left and right imageview in storyboard with padding. At a single time image is either show on left side or right side. Also you can add Layer to TextField. If you add any color to Bottom Color it will add a layer in
bottom layer and it's borderStyle will change. if you set it clear color it will change to .roundedRect borderStyle.

# NOTE
if you want to add image on right side you have to select the Force Right-to-Left option in semantic in interface builder.

# Installation
Manually
Clone or Download this Repo. Then simply drag the class ImageTextField.swift to your Xcode project.
# CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate ImageTextField into your Xcode project using CocoaPods, specify it in your Podfile:
```source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target '' do
pod 'ImageTextField','~> 1.0.0'
end
```
Then, run the following command:
$ pod install
# Requirements
Swift 3.0
iOS 8.0 or later
# Contributions
Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.