MIT License

项目介绍

raulriera/TextFieldEffects 是一个托管在 GitHub 上的开源项目,主要使用 Swift 编写,采用 MIT License 许可证,目前获得 6.0k 个 Star、575 次 Fork。

仓库全名
raulriera/TextFieldEffects
开源许可证
MIT License
Star 数
6.0k
Fork 数
575
未关闭 Issue
6

README 摘要

I fell in love with the text inputs effects in this article. As an exercise I decided to recreate as many of them as I can using Swift (some of them have a personal touch). Currently it features the following effects from the article: [x] Kaede [x] Hoshi [x] Jiro [x] Isao [x] Minoru [x] Yoko [x] Madoka [x] Akira [x] Yoshiko How they look Kaede Hoshi Jiro Isao Minoru Yoko Madoka Akira Yoshiko Installation Looking for…

完整内容见 GitHub 原始 README 或本页 。

常见问题

TextFieldEffects 用什么语言开发?

主要使用 Swift 编写,采用 MIT License 许可证,目前有 6.0k 个 Star。

TextFieldEffects 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 TextFieldEffects 的源码?

可以直接克隆仓库:git clone https://github.com/raulriera/TextFieldEffects.git,默认分支为 master;安装与运行步骤见仓库 README。

TextFieldEffects 最近还在维护吗?

仓库最近一次更新为 2024年1月29日,当前有 6 个未关闭 Issue;Star 数为 6.0k,可作为社区活跃度的参考。

简要分析

热度分
7289
价值分
3791
活跃状态
活跃

语言占比

Objective-C
Ruby
Swift

Release

README

TextFieldEffects Build Status

I fell in love with the text inputs effects in this article. As an exercise I decided to recreate as many of them as I can using Swift (some of them have a personal touch).

Currently it features the following effects from the article:

  • Kaede
  • Hoshi
  • Jiro
  • Isao
  • Minoru
  • Yoko
  • Madoka
  • Akira
  • Yoshiko

How they look

Kaede

Hoshi

Jiro

Isao

Minoru

Yoko

Madoka

Akira

Yoshiko

Installation

  • Looking for Swift 2.3 support? Check out the 1.2.0 tag.
  • Looking for Swift 2.1 support? Check out the 1.1.1 tag.
  • Looking for Swift 1.2 support? Check out the swift-1.2 branch.

Manual

The easiest way to install this framework is to drag and drop the TextFieldEffects/TextFieldEffects folder into your project. This also prevents the frameworks problem in iOS where the IBInspectable and IBDesignable are stripped out.

CocoaPods

Add the following to your Podfile:

use_frameworks!
pod 'TextFieldEffects'

Carthage

Add the following to your Cartfile:

github 'raulriera/TextFieldEffects'

How to use them

Every effect is properly documented in the source code, this is the best way to both understand and see what they do. There is also an example project included with all the effects and their settings.

Interface Builder

The library is a simple drop-in, as soon as you set your subclass to one of the effects and your module to TextFieldEffects you will be able to see all the IBDesignable settings in the storyboard.

Code

If you like to get your hands dirty, you can use them just like you would normally use any UITextField

let textField = KaedeTextField(frame: textFieldFrame)
textField.placeholderColor = .darkGrayColor()
textField.foregroundColor = .lightGrayColor()

view.addSubView(textField)

Is that simple.

Created by

Raul Riera, @raulriera

评论

暂无评论