Latest 0.2.5
Homepage https://github.com/iWECon/IW
License MIT
Platforms ios 8.0
Frameworks UIKit, WebKit, Foundation, JavaScriptCore, UserNotifications, AssetsLibrary, AddressBook
Authors

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

适用于: iOS, Swift 4.0

安装方法

pod 'IW'

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

更新说明

2018.0110

期间修改了不少东西,并且支持 CocoaPods 安装了!喜大普奔 折腾了好久 ~_~|||
新增加了 类名方法名中文注释;
新增加了 IWRootVC 两个属性 isEnterByPopisEnterByPush , 功能分别为判断该视图是否为push进入, 是否为pop进入;

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);
使用例子:参见使用说明;

Latest podspec

{
    "name": "IW",
    "version": "0.2.5",
    "summary": "Make Swift faster and use it more smoothly.",
    "description": "Make Swift faster and use it more smoothly with cocoapod support.",
    "homepage": "https://github.com/iWECon/IW",
    "license": "MIT",
    "authors": {
        "IWECon": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/iWECon/IW.git",
        "tag": "v0.2.5"
    },
    "source_files": [
        "Sources/IWKits/*.swift",
        "Sources/IWKits/**/*.swift"
    ],
    "resources": "Sources/IWKits/IWBundle/IWBundle.bundle",
    "pod_target_xcconfig": {
        "SWIFT_INCLUDE_PATHS[sdk=macosx*]": "$(PODS_ROOT)/IW/CocoaPods/macosx",
        "SWIFT_INCLUDE_PATHS[sdk=iphoneos*]": "$(PODS_ROOT)/IW/CocoaPods/iphoneos",
        "SWIFT_INCLUDE_PATHS[sdk=iphonesimulator*]": "$(PODS_ROOT)/IW/CocoaPods/iphonesimulator",
        "SWIFT_INCLUDE_PATHS[sdk=appletvos*]": "$(PODS_ROOT)/IW/CocoaPods/appletvos",
        "SWIFT_INCLUDE_PATHS[sdk=appletvsimulator*]": "$(PODS_ROOT)/IW/CocoaPods/appletvsimulator",
        "SWIFT_INCLUDE_PATHS[sdk=watchos*]": "$(PODS_ROOT)/IW/CocoaPods/watchos",
        "SWIFT_INCLUDE_PATHS[sdk=watchsimulator*]": "$(PODS_ROOT)/IW/CocoaPods/watchsimulator"
    },
    "xcconfig": {
        "HEADER_SEARCH_PATHS": "$(SDKROOT)/usr/include/CommonCrypto/CommonCrypto.h"
    },
    "preserve_paths": "CocoaPods/**/*",
    "frameworks": [
        "UIKit",
        "WebKit",
        "Foundation",
        "JavaScriptCore",
        "UserNotifications",
        "AssetsLibrary",
        "AddressBook"
    ],
    "prepare_command": "./CocoaPods/injectXcodePath.sh",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This