# EasyIOS-Swift **Repository Path**: changes/EasyIOS-Swift ## Basic Information - **Project Name**: EasyIOS-Swift - **Description**: EasyIOS的Swift版本 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 13 - **Created**: 2015-05-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![image](https://raw.githubusercontent.com/zhuchaowe/EasyIOS/gh-pages/images/logo.png) EasyIOS For Swift ======= [![Version](https://img.shields.io/cocoapods/v/EasyIOS-Swift.svg?style=flat)](http://cocoapods.org/pods/EasyIOS-Swift) [![License](https://img.shields.io/cocoapods/l/EasyIOS-Swift.svg?style=flat)](http://cocoapods.org/pods/EasyIOS-Swift) [![Platform](https://img.shields.io/cocoapods/p/EasyIOS-Swift.svg?style=flat)](http://cocoapods.org/pods/EasyIOS-Swift) [![qq](http://img.shields.io/badge/QQ%E7%BE%A4-340906744-green.svg)](http://shang.qq.com/wpa/qunwpa?idkey=562d002e275a8199081313b00580fb7111a4faf694216a239064d29f5238bc91) ## Star is the Best Way to Support EasyIOS ! * [On Github](https://github.com/EasyIOS/EasyIOS-Swift) * [On OSChina](http://git.oschina.net/zhuchaowe/EasyIOS-Swift) * [中文README](/README/Chinese.md) * [IOSX - EasyIOS Official Forum](http://www.iosx.me) * [EasyIOS-ObjC](https://github.com/EasyIOS/EasyIOS) * The document will come as soon as possible! ## DEMO Video [![ScreenShot](http://g3.tdimg.com/0d239f40817111df0dfe941cbc6f9d5e/b0_2.jpg)](http://www.tudou.com/v/aWwPwUhdt5E/&rpid=6059352&resourceId=6059352_04_05_99/v.swf) ## Features * MVVM : `Model-View-ViewModel` inspired by [Functional Reactive Programming](http://en.wikipedia.org/wiki/Functional_reactive_programming) * HTML To Native : Transform HTML&CSS to Native Control, * DataBinding : We can use the SwiftBond to Bind the data via swift,and use the EZViewModel to Bind the data via html.example `{{title}}` * Reflect Cocoa Touch : Reflect all the Cocoa Touch Api ,we can use the Cocoa Touch Api via HTML * AutoLayout : The HTML layout based on the `AutoLayout` * Live Load : Edit the HTML and the view in smulator will update automaticly without rebuild your app * Cryptographic HTML : To make the HTML be safety,we provide the `AES Encryption` to encrypt the HTML * URLManager : Push or Present the Controller by the custom URL * Elegant PullToRefresh : Add PullToRefresh or InfiniteScrolling by HTML ## HTML To Native * UITableView With PullReflash * `align`,`margin` to control the AutoLayout of the UIView * `pull-to-refresh="handlePullRefresh." `,`infinite-scrolling="handleInfinite. PullFooter"` to add the PullRefresh or InfiniteScrolling . * `handlePullRefresh.` handle the event by `func handlePullRefresh (tableView:UITableView)` ,you can define it by yourself. * `PullFooter` can load the custom PullReflashView ```HTML
{{title}} {{subTitle}}
{{title}}
``` * UIScrollView With CSS * Use the CSS by `@` for example `@contentAlign`. ```HTML
``` * HTML Label and reusable html * `@import(LabelHtml)` to import the `LabelHtml.xml` * When span set `style="color:#ACACAC;font-size:18px;"` node ,we can use the origin html inner the span tag. ```HTML
@import(LabelHtml)
``` * UICollectionView with FlowLayout ```HTML
{{name}}
``` ## MVVM The MVVM based on the Swift binding framework [SwiftBond](https://github.com/SwiftBond/Bond) Bond is a Swift binding framework that takes binding concept to a whole new level - boils it down to just one operator. It's simple, powerful, type-safe and multi-paradigm - just like Swift. ## Usage To run the example project, clone the repo, and run `pod install` from the Demo directory first. ## Requirements * Swift * IOS8 ## Installation EasyIOS-Swift is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby platform :ios, '8.0' use_frameworks! pod "EasyIOS-Swift" ``` import the EasyIOS ```swift import EasyIOS ``` ## Author zhuchao, zhuchao@iosx.me ## License EasyIOS-Swift is available under the MIT license. See the LICENSE file for more info.