CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2015 |
SPMSupports SPM | ✗ |
Maintained by WeZZard.
Core Graphics Extended Library is aiming to complete missing conveniences in Core Graphics.
pod "CoreGraphicsExt"
Emebed Binaries
field in your target’s general page if you are building an app. Or add Core Graphics Extended Library to your Linked Frameworks and Libraries
field in your target’s general page if you are building a framework.import CoreGraphicsExt
to your Swift source fileYou can now linear mix CGFloat, CGPoint and CGSize now
You can now check:
CGPoint
value is inside a circle which is the biggest circle inside the given CGRect
valueCGPoint
value is on the circumference of a circle which is the biggest circle inside the given CGRect
valueCGPoint
value is inside a CGRect
valueCGPoint
value is on the circumference of a CGRect
valueCGRect
value touches an other.You can now create CGRect
value with:
CGPoint
values which require created CGRect
value to coverCGRect
values which require created CGRect
value to coverYou also can now create CGRect
value by:
CGRect
value’s origin or sizeYou can now create CGPoint
value with
You can now integral CGFloat, CGPoint, CGSize and CGRect value by accessing their integral
property.
You can now algin CGFloat, CGPoint, CGSize and CGRect value to screen pixel by calling func alignToScreenPixel(policy: ScreenPixelAlignmentPolicy)
function on those value.
You can +
, -
a CGPoint value with an other now. You can *
, /
a CGPoint value with a CGFloat value now You can make a dot product with two CGPoint values now.
You can +
, -
a CGSize value with an other now. You can *
, /
a CGSize value with a CGFloat or an Int value now
CGPoint
valuesCGPoint
valuesCGSize
valueCGRect
valueCore Graphics Extended Library is available under the MIT license. See the LICENSE file for more info.