FlexLib

FlexLib是一个基于flexbox模型,使用xml文件进行界面布局的框架,融合了web快速布局的能力,让iOS界面开发像写网页一样简单快速

MIT License

Stars
1.7K
Committers
5
FlexLib - 消除可能导致IDE报错的头文件引用

Published by zhenglibao almost 6 years ago

  1. 增加bundleForRes接口,bundleForImage默认使用bundleForRes的返回值,此方法能够更好地支持在组件中使用xml布局
  2. 增加flexBasis属性
  3. iOS11以下添加状态栏高度
  4. owner增加可重载方法needBindVariable, 允许owner不声明变量而使用名称动态获取视图
  5. FlexCustomBaseView用在非xml布局时允许根据内容更新自身的frame
  6. FlexCustomBaseView和FlexCustomView支持使用评估高度
FlexLib - 修复FlexModalView连续显示/隐藏的问题

Published by zhenglibao about 6 years ago

FlexLib - margin和padding支持设置多值,layout类型的值支持取消设置

Published by zhenglibao about 6 years ago

  1. 对于margin, padding等Layout类型的值(支持数值和百分比),可以通过设置为none或auto取消原来设置的值
  2. margin和padding支持一次设置4个不同的值,格式为 左/上/右/下
  3. FlexBaseTableCell增加rootview属性
  4. UIScrollView增加alwaysBounceVertical和alwaysBounceHorizontal属性
FlexLib - 增加对FlexCollectionCell的支持

Published by zhenglibao about 6 years ago

FlexLib - 升级检测iPhone X设备方法,升级getSafeArea实现

Published by zhenglibao about 6 years ago

FlexLib - FlexBaseTableCell支持使用评估高度

Published by zhenglibao about 6 years ago

使用方法:
_tableview.rowHeight = UITableViewAutomaticDimension;
_tableview.estimatedRowHeight = 88;
即可正常工作

FlexLib - 查看布局时禁止变量名绑定,防止产生内存泄漏

Published by zhenglibao over 6 years ago

FlexLib - FlexTextView的placeholder在重设frame后没有刷新的问题

Published by zhenglibao over 6 years ago

FlexLib - 批量增加以下属性

Published by zhenglibao over 6 years ago

UIView::font,格式为   字体名称|字体大小    字体名称也可以是bold或者italic
FlexTextView::placeholder
FlexTextView::placeholderColor
UILabel::lineSpacing
UILabel::paragraphSpacing
UILabel::firstLineHeadIndent
UILabel::headIndent
UILabel::tailIndent
FlexLib - 增加对FlexFrameView的safeArea支持

Published by zhenglibao over 6 years ago

FlexFrameView增加对safeArea的支持,能够更好的用在ViewController上(也就是FlexFrameView可以…
…不再和子FlexRootView的大小保持一致),使用时直接设置FlexRootView的safeArea属性即可

FlexLib - 增加后台计算布局支持

Published by zhenglibao over 6 years ago

FlexLib - 增加大量输入键盘相关属性

Published by zhenglibao over 6 years ago

FlexLib - 增加FLEXDIDLAYOUT事件通知

Published by zhenglibao over 6 years ago

FlexLib - 增加在线布局浏览器

Published by zhenglibao almost 7 years ago

  1. 首先本地开启http服务器
  2. debug模式下,在任意FlexBaseVC派生类界面中按下Control+E呼出在线布局浏览器,然后可以通过http浏览布局文件
FlexLib - 多个小版本形成

Published by zhenglibao almost 7 years ago

  1. 增加FlexCollectionView,解决UICollectionView无法直接在xml中使用的问题
  2. 增加枚举组属性支持
  3. 创建视图初始化增加容错机制
  4. 增加大量视图属性
  5. 修复在有导航栏且导航栏不透明时导致rootview位置不对的问题
  6. 自定义缩放接口增加属性名称
  7. 修复text属性监听问题
FlexLib - 增加接口

Published by zhenglibao almost 7 years ago

  1. owner中增加createView接口,允许自定义view的初始化
  2. owner中增加postCreateView接口,允许自定义view完成初始化的事件
  3. FlexTouchView中增加onTouch接口,允许自定义触摸事件
FlexLib - 增加自定义view使用xml布局支持,设置百分比值得bug修复

Published by zhenglibao almost 7 years ago

增加FlexCustomBaseView类型,从该类派生后可以使用xml布局
修复了潜在的百分比设置bug

Package Rankings
Top 3.75% on Cocoapods.org
Badges
Extracted from project README
CI Status Version License Platform