Giter VIP home page Giter VIP logo

iw's Introduction

IW

IW Extension
一套快速开发框架, 集成了许多日常使用的方法

适用于: Swift 4.0

扩展详情说明 参见: 详情说明
有任何疑问或使用过程中出现的问题, 请尽情发 Issues 告知

更新说明

2017.1204

A 新增 UIColor+IW 用于处理颜色这一块儿;
A 新增 UIImage+IW 用于处理图片这一块儿;
AUIView+IW 新增 showDebugColor: 给子视图添加背景颜色, 方便调试;
AUIViewController+IW 新增 close方法(自动判断是pop还是dismiss);
AIWExtension.swift -> extension String 新增类方法 hexStringhexLetterString 两个方法, 用于转换为16进制字符串;
  新增 extension CGSize, isEmpty: 判断size是否为空;
AString+IW 新增方法 trimtrimWithSpacetrimLineBreakCharactermd5timeWithMinsAndSecs;
AUILabel+IW 新增方法 same(as:): 将目标label的样式(fonttextColorbackgroundColorlineBreakModetextAlignment)复制到当前label;
AUIImageView+IW 新增方法 sizeToFitKeepingImageAdpectRatio: 把 UIImageView 的宽高调整为能保持 image 宽高比例不变的同时又不超过给定的 limitSize 大小的最大frame, 建议在设置完 x/y 之后使用;
AUIImage+IW 新增 averageColor: 取图片均色;
  grayImage: 将图片置灰;
  opaque: 图片是否包含透明通道;
  alpha: 设置图片透明度;
  tintColor: 保持图片形状不变, 使用指定的颜色填充;
  blendColor: 保持图片的形状和纹理不变, 使用指定的颜色渲染;
AUIColor+IW 新增 isDark: 是否为暗色;
  inverseColor: 返回反色;
  randomColor: 返回一个随机色;
  hex: 返回色值的16进制代码, 颜色通道排序为 RGBA;
  colorWithoutAlpha: 返回去除透明通道(将透明值设置为1.0)的颜色;
  redgreenbluealphahuesaturationbrightness: 返回对应通道的值;
  image: 返回一张 4x4 的纯色图片;
  image(withColor: size: cornerRadius:): 返回一张自定义的纯色图片;
AString+IW 新增 loadFileContents: 将路径文件读取为utf8的字符串;
A 新增Data+IW, 包含 stringstringValue;
A 新增CGSize+IW, 包含 rectfixSize;
AArray+IW 新增 enumeratedNested: 将多维数组按照一维数组进行遍历;
AIWGlobal.swift 新增 MakePoint;

C 修改部分文件命名, 采用 类+IW 进行命名;
CUIViewController+IW 修改方法名 dimissdismiss(viewControllerWithAnimated animated: Bool);
CUIView+IW 修改方法 addToaddTo(view: UIView?, setToViewBounds: Bool = false);
CUITableViewHeaderFooterView+IW 修改方法 fixbackgroundColorWarning 实现Code;
CIWExtension.swift -> statusBarHeight 结果改为实时获取, 避免打电话的时候的动态高度;

FIWExtension.swift 修复 tabbarHeightstatusBarheight 的获取逻辑;

2017.1201

C 修改 IWLocalAuthentication 部分变量定义;

2017.1130

A 新增 IWLocalAuthentication 类, 用于本地认证 ( Face ID / Touch ID);
使用例子:参见使用说明;

iw's People

Contributors

iwecon avatar

Watchers

James Cloos avatar Carabineiro avatar

Forkers

howoften

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.