All Projects → shevakuilin → SKArchCutter-Swift

shevakuilin / SKArchCutter-Swift

Licence: MIT License
SKArchCutter-Swift是一个基于 Swift 的可自选切割角的圆角切割工具,同时支持UIView、UIImageView、UIButton和UILabel的单角切圆/选角拱形切圆/全角切圆,并且避免了UIImageView使用系统圆角所导致的离屏渲染的问题,以及确保layer对象的masksToBounds属性始终为NO,从而使得项目中大量使用圆角时的性能得到很大程度的优化, 最重要的是使用简单、方便。

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to SKArchCutter-Swift

SKArchCutter
SKArchCutter是一个可自选切割角的圆角切割工具,同时支持UIView、UIImageView、UIButton和UILabel的单角切圆/选角拱形切圆/全角切圆,并且避免了UIImageView使用系统圆角所导致的离屏渲染的问题,以及确保layer对象的masksToBounds属性始终为NO,从而使得项目中大量使用圆角时的性能得到很大程度的优化, 最重要的是使用简单、方便。
Stars: ✭ 80 (+142.42%)
Mutual labels:  uiimage, imagecutter
uiimage-additions
A collection of miscellaneous utility methods for UIImage for memory-efficient image transformations.
Stars: ✭ 21 (-36.36%)
Mutual labels:  uiimage
Ios Uiimage Render To Pdf
iOS Render UIImage to PDF and merging PDF files
Stars: ✭ 8 (-75.76%)
Mutual labels:  uiimage
Swiftuiimageeffects
Swift port of Apple UIImage+UIImageEffecs category.
Stars: ✭ 213 (+545.45%)
Mutual labels:  uiimage
Swiftgen
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!
Stars: ✭ 7,580 (+22869.7%)
Mutual labels:  uiimage
UIImageColorRatio
A tool to calculate the color ratio of UIImage in iOS.
Stars: ✭ 34 (+3.03%)
Mutual labels:  uiimage
Bkasciiimage
Convert UIImage to ASCII art
Stars: ✭ 421 (+1175.76%)
Mutual labels:  uiimage
Leon
Leon is swift library to show and slid images with more gesture
Stars: ✭ 16 (-51.52%)
Mutual labels:  uiimage
KBImageView
UIImageView with Ken Burns effect.
Stars: ✭ 48 (+45.45%)
Mutual labels:  uiimage
Asyncimage
Asynchronous Image Loading from URL in SwiftUI
Stars: ✭ 139 (+321.21%)
Mutual labels:  uiimage
Uiimageheic
UIImage category that adds familiar HEIC encoding.
Stars: ✭ 125 (+278.79%)
Mutual labels:  uiimage
Ios Imagezoomviewer
ImageZoomViewer is a simple to use Objective C framework that allows the capability of viewing images with zoom-in zoom-out functionality.
Stars: ✭ 14 (-57.58%)
Mutual labels:  uiimage
TGImage
一款以最新潮的方式来使用UIImage的swift插件
Stars: ✭ 18 (-45.45%)
Mutual labels:  uiimage
Czsharedimage
Optimize iOS image loading by sharing UIImage objects.
Stars: ✭ 13 (-60.61%)
Mutual labels:  uiimage
NetworkImage
Asynchronous image loading in SwiftUI
Stars: ✭ 39 (+18.18%)
Mutual labels:  uiimage
Sablurimageview
You can use blur effect and it's animation easily to call only two methods.
Stars: ✭ 538 (+1530.3%)
Mutual labels:  uiimage
Nyximageskit
A set of efficient categories for UIImage class. It allows filtering, resizing, masking, rotating, enhancing... and more.
Stars: ✭ 2,553 (+7636.36%)
Mutual labels:  uiimage
SPPhotoViewer
A customisable smart photoviewer of your photos!!!
Stars: ✭ 14 (-57.58%)
Mutual labels:  uiimage
Hola
Light-weight Onboard/Walkthrough UIView/UIImage representer ⏪ & ⏩ ⏫ & ⏬
Stars: ✭ 40 (+21.21%)
Mutual labels:  uiimage
R.objc
Get autocompleted resources like images, localized strings and storyboards in ObjC projects
Stars: ✭ 92 (+178.79%)
Mutual labels:  uiimage

简述

SKArchCutter-Swift是一个基于 Swift 的可自选切割角的圆角切割工具,同时支持UIView、UIImageView、UIButton和UILabel的单角切圆/选角拱形切圆/全角切圆,并且避免了UIImageView使用系统圆角所导致的离屏渲染的问题,以及确保layer对象的masksToBounds属性始终为NO,从而使得项目中大量使用圆角时的性能得到很大程度的优化, 最重要的是使用简单、方便。如果觉得还不错,star支持下吧~

![](https://img.shields.io/badge/language-Swift 4.2-purple.svg)

提示

  • 同时兼容SnaKit和frame布局

  • 支持使用border

  • 支持Swift 4.2, Objective-C版本

  • 注意:如果之前设置了borderbackgroundColor请取消,关闭masksToBounds(如果打开了话), 请在方法中进行设置

效果图

测试性能

如何开始

1.从GitHub上Clone-->SKArchCutter-Swift,然后查看Demo

2.直接将目录下的SKArchCutter-Swift拷贝到工程中,或在podfile文件夹中添加 pod 'SKArchCutter-Swift'

3.如果觉得还不错,点个star吧~

使用方法

进行圆角切割

UIView/UIButton/UILabel

SKArchCutter_Swift.cuttingView(view: myView, direction: [UIRectCorner.topRight, UIRectCorner.topLeft], cornerRadii: myView.frame.size.height / 2, borderWidth: 1, borderColor: UIColor.black, backgroundColor: UIColor.red)

UIImageView

SKArchCutter_Swift.cuttingImageView(imageView: myImageView, direction: UIRectCorner.allCorners, cornerRadii: myImageView.frame.size.height / 2, borderWidth: 1, borderColor: UIColor.purple, backgroundColor: UIColor.clear)

感谢你花时间阅读以上内容, 如果这个项目能够帮助到你,记得告诉我

Email: [email protected]

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].