An open API service indexing awesome lists of open source software.

https://github.com/sahilberi/imagetextfield


https://github.com/sahilberi/imagetextfield

border-style ibdesignable storyboard textfield

Last synced: 3 months ago
JSON representation

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.