EasyIOS-Swift - iOS 开发框架


MIT
iOS
Objective-C

软件简介

EasyIOS
开源至今已经1周年,全新Swift版本今日发布,支持利用HTML来开发IOS应用,支持模拟器实时预览,基于MVVM思想,HTML数据绑定,反射所有
CocoaTouch API。

EasyIOS 再一次加速 IOS 开发,优化 IOS 开发体验,拥抱 Swift2.0

DEMO Video

新版特性

  • MVVM :Model-View-ViewModel实现代码分离,分离ViewController中的大量逻辑代码,解决ViewController承担了过多角色而造成的代码质量低下。增加视图与模型的绑定特性。

  • HTML To Native : 利用类似HTML的语言来对UI进行布局,简单易学,可重用

  • FlexBox Support:支持facebook的flexbox实现 ,可以很好的配合AutoLayout进行布局。

  • DataBinding : 采用了第三方库SwiftBond,可以实现数据绑定操作,同样HTML里也可以进行数据绑定操作,识别标签是双大括号比如{{title}}

  • Reflect Cocoa Touch : 可以反射所有Cocoa Touch中UIKit的所有属性,目前实现了一部分,后面大家一起来维护,增加更多API

  • AutoLayout : 在HTML进行Autolayout布局,真的很简单!

  • Live Load : 在模拟器中运行app,在修改HTML之后进行保存,模拟器中会自动更新UI布局,不需要重新编译APP

  • Cryptographic HTML : 为了保证HTML代码的安全,我们提供了AES Encryption对HTML进行加密

  • URLManager : 我们可以利用URL来push或者present一个视图

  • Elegant PullToRefresh : 可以利用HTML轻松的添加下拉刷新和上拉加载控件

HTML To Native

  • UITableView With PullReflash

    • align,margin来控制UIView的布局

    • pull-to-refresh=”handlePullRefresh.”,infinite-scrolling=”handleInfinite. PullFooter”来添加下拉刷新和上拉加载

    • handlePullRefresh.handle the event byfunc handlePullRefresh (tableView:UITableView),you can define it by yourself.

    • PullFootercan load the custom PullReflashView


        
            
                
                {{title}}
                {{subTitle}}
            


        
            {{title}}
        

    

  • UIScrollView With CSS



        
    div align="@contentAlign"
                
                
    input class="userTextField" id="userTextField" align="edge:10 10 -10 -10;" placeholder-style="@inputStyle" keyboard-type="EmailAddress" style="@inputStyle" placeholder="上面的logo可以被点击"/
                


  •             
    input id="passwordTextField" secure-text-entry="YES" align="10 10 -10 -10" placeholder="密码" placeholder-style="@inputStyle" style="@inputStyle" /
                

                登陆
            
        

  • HTML Label and reusable html

  • ”/>@contentAlign”>
    <!–span标签设置了style属性则启用富文本模式,span内部可以支持原生HTML的所有属性,具体请看LabelHtml.xml文件–>
    <!–import the xml –>
    @import(LabelHtml)

    ```

    MVVM

    The MVVM based on the Swift binding framework
    SwiftBond

    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 runpod installfrom the Demo
    directory first.

    Requirements

    Installation

    EasyIOS-Swift is available through CocoaPods. To
    install it, simply add the following line to your Podfile:

    platform :ios, '8.0'
    use_frameworks!
    pod "EasyIOS-Swift"
    

    import the EasyIOS

    import EasyIOS
    


    软件首页