Travis (.com) GitHub issues

Swift version Platform

CocoaPods Compatible Carthage Compatible Swift Package Manager Compatible

Lisence

GhostTyping 是一个使用 Swift 编写的自定义 UIView 库,内部包含 UITextField。其目标是将类似于其他 Javascript 框架的动画和功能引入到 iOS 原生开发中。

功能特性

安装

CocoaPods

CocoaPods 是 Cocoa 项目的依赖管理工具。您可以使用以下命令安装它:

$ gem install cocoapods

要使用 CocoaPods 将 GhostTyping 集成到您的 Xcode 项目中,请在您的 Podfile 中指定它:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'GhostTyping'
end

然后,运行以下命令:

$ pod install

Carthage

Carthage 是一个去中心化的依赖管理器,可以构建您的依赖项并为您提供二进制框架。

您可以使用 Homebrew 使用以下命令安装 Carthage:

$ brew update
$ brew install carthage

要使用 Carthage 将 GhostTyping 集成到您的 Xcode 项目中,请在您的 Cartfile 中指定它:

github "huynguyen-n/GhostTyping"

运行 carthage update 来构建框架,并将构建的 GhostTyping.framework 拖入您的 Xcode 项目中。

Swift Package Manager

Swift Package Manager 是一种用于自动化 Swift 代码分发的工具,并已集成到 swift 编译器中。

一旦您设置好了 Swift 包,将 GhostTyping 作为依赖项添加到 Package.swiftdependencies 值中就很容易了。

dependencies: [
    .package(url: "https://github.com/huynguyen-n/GhostTyping.git")
]

如何使用

有关完整的文档,请访问 CocoaPods 自动生成的文档

GhostTyping 实际上是 UIView 的一个子类,它内部集成了 UITextField 以实现打字动画效果。

导入

import GhostTyping

许可证

GhostTyping 在 MIT 许可证下可用。 有关更多信息,请参阅 LICENSE 文件。