All Projects → RockChanel → Swform

RockChanel / Swform

iOS 高度封装自适应表单(重构版)

Projects that are alternatives of or similar to Swform

Jhform
JhForm - 自定义表单工具,更加简单,快捷的创建表单、设置页面
Stars: ✭ 108 (-32.08%)
Mutual labels:  form, tableview
Ios Multiselectiontable
Beautiful way of having a multi-selection table on iOS written in Swift
Stars: ✭ 156 (-1.89%)
Mutual labels:  tableview
Avue
Avue.js2.0是基于现有的element-ui库进行的二次封装,简化一些繁琐的操作,核心理念为数据驱动视图,主要的组件库针对table表格和form表单场景,同时衍生出更多企业常用的组件,达到高复用,容易维护和扩展的框架,同时内置了丰富了数据展示组件,让开发变得更加容易
Stars: ✭ 1,789 (+1025.16%)
Mutual labels:  form
Convform
A jQuery plugin that transforms a form into an interactive chat.
Stars: ✭ 141 (-11.32%)
Mutual labels:  form
Tableview
A RecyclerView that looks like a TableView, can scroll horizontally and vertically with a fixed header at the same time.
Stars: ✭ 135 (-15.09%)
Mutual labels:  tableview
Mdtable
A data-driven UITableView framework
Stars: ✭ 153 (-3.77%)
Mutual labels:  tableview
Anwexpandscrollview
Expand - Collapse Scroll View - Animate With Pinch Gesture
Stars: ✭ 125 (-21.38%)
Mutual labels:  tableview
Emaccordiontableviewcontroller
Accordion effect for UITableView
Stars: ✭ 158 (-0.63%)
Mutual labels:  tableview
Vue Ui For Pc
基于Vue2.x的一套PC端UI组件,包括了Carousel 跑马灯、Cascader 级联、Checkbox 多选框、Collapse 折叠面板、DatePicker 日期选择、Dialog 对话框、Form 表单、Input 输入框、InputNumber 数字输入框、Layer 弹窗层、Loading 加载、Menu 菜单、Page 分页、Progress 进度条、Radio 单选框、SelectDropDown 仿select、Switch 开关、Table 表格、Tabs 标签页、Textarea 文本框、Tooltip 文字提示、BackTop 返回顶部、steps 步骤条、Transfer 穿梭框、Tree 树形、Upload 文件上传、Lazy 图片懒加载、Loading 加载、Pagination 分页等等
Stars: ✭ 156 (-1.89%)
Mutual labels:  form
Arsegmentpager
segment tab controller with parallax Header
Stars: ✭ 1,691 (+963.52%)
Mutual labels:  tableview
Abexpandableview
Expandable, collapsible, filterable and single/multi selectable table view.
Stars: ✭ 138 (-13.21%)
Mutual labels:  tableview
Reactive forms
This is a model-driven approach to handling form inputs and validations, heavily inspired in Angular's Reactive Forms
Stars: ✭ 135 (-15.09%)
Mutual labels:  form
Formhelper
ASP.NET Core - Transform server-side validations to client-side without writing any javascript code. (Compatible with Fluent Validation)
Stars: ✭ 155 (-2.52%)
Mutual labels:  form
Forms
📝 Simple form & survey app for Nextcloud
Stars: ✭ 127 (-20.13%)
Mutual labels:  form
Accordionswift
The best way of implement an accordion menu using an UITableView in Swift
Stars: ✭ 156 (-1.89%)
Mutual labels:  tableview
Form Validation.js
The most customizable validation framework for JavaScript.
Stars: ✭ 127 (-20.13%)
Mutual labels:  form
Antd Schema Form
Based on Ant Design, interactive forms can be generated through JSON Schema configuration. - 基于Ant Design,可以通过JSON Schema配置生成可交互的表单。
Stars: ✭ 137 (-13.84%)
Mutual labels:  form
React Native Form
A simple react-native component to wrap your form fields and get their values with just one single method.
Stars: ✭ 146 (-8.18%)
Mutual labels:  form
Vuetify Form Base
Schema-based Form Generator - Vue.js 2.0 Component based on Vuetify 2.0
Stars: ✭ 157 (-1.26%)
Mutual labels:  form
Core
The Form Tools Core.
Stars: ✭ 156 (-1.89%)
Mutual labels:  form

SWForm

详细说明戳这里:iOS 高度封装自适应表单(重构版)

image

image

SWForm 旨在快捷构建表单系统框架,支持大部分表单系统所需条目样式,且包含了图片附件、编辑、新增、详情等功能的拓展.

Warning

若下载项目之后,运行报错 incompatible project version,是由于此项目创建 Xcode 版本为 9.4.1。若运行 Xcode 版本低于此版本,解决方法如下:

方法一:更新 Xcode 版本

方法二:右键 SWFormExample.xcodeproj, 点击显示包内容,打开 project.pbxproj 文件,修改降低 objectVersion 即可运行

使用方式

使用 SWForm 框架只需将 SWForm文件夹导入项目中,将所有可定制化配置的接口都已经统一入口,方便使用者根据自身需求实现定制化功能.

本项目中提供了所有定制化接口的示例 SWFormDemo,以作为参考。


SWForm 根据需求提供了三个接口文件,以方便使用者实现高度定制化,分别为 UIImageView+FormImageSWFormImageCell+ImageHandleSWFormHandler.


UIImageView+FormImage 针对表单图片条目图片加载提供接口:

- (void)sw_setImageItemWithUrl:(NSURL *)url;

SWFormImageCell+ImageHandle 提供图片添加接口以及图片预览接口,使用者可以在此接口添加自定义图片选择以及图片预览功能:

/**
 选择图片数据回调
 
 @param maxImages 最大可选择图片数
 @param currentImages 当前选择图片数
 @param completion 选择图片数组回调
 */
- (void)sw_selectImageWithMaxImages:(NSInteger)maxImages currentImages:(NSInteger)currentImages completion:(void(^)(NSArray *selectImages))completion;

/**
 图片浏览

 @param images 图片数组
 @param currentIndex 当前浏览的index
 */
- (void)sw_photoBrowserWithImages:(NSArray *)images currentIndex:(NSInteger)currentIndex;

SWFormHandler 为数据校验文件,提供了相机权限、相册权限以及表单空数据校验功能:

/**
 必选(必填)数据空数据校验,可根据需求定制

 @param datas 表单数据源
 @param success 必选(必填)数据全部校验成功
 @param failure 必选(必填)数据某一项校验失败
 */
+ (void)sw_checkFormNullDataWithWithDatas:(NSArray *)datas success:(void(^)(void))success failure:(void(^)(NSString *error))failure;

/**
 校验是否有相机权限
 */
+ (void)sw_checkCameraAuthorizationStatusWithGrand:(void(^)(BOOL granted))permissionGranted;

/**
 校验是否有相册权限
 */
+ (void)sw_checkAlbumAuthorizationStatusWithGrand:(void(^)(BOOL granted))permissionGranted;
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].