From 5cf95c14d7933bde6bcc7e8d822a2358c62e5a50 Mon Sep 17 00:00:00 2001 From: Jorge Leandro Perez Date: Tue, 21 Nov 2017 15:39:56 -0300 Subject: [PATCH 1/8] Adding swift-version file --- .swift-version | 1 + 1 file changed, 1 insertion(+) create mode 100644 .swift-version diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..5186d07 --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +4.0 From 26c85ca9a0ec8809a3c9abcdd38cf766a48a0064 Mon Sep 17 00:00:00 2001 From: James Frost Date: Thu, 11 Jan 2018 12:45:59 +0000 Subject: [PATCH 2/8] Add Plans icon --- Gridicons/Gridicons/Gridicons.swift | 3 + Gridicons/Gridicons/GridiconsGenerated.swift | 67 +++++++++++++++++++- 2 files changed, 69 insertions(+), 1 deletion(-) diff --git a/Gridicons/Gridicons/Gridicons.swift b/Gridicons/Gridicons/Gridicons.swift index e92498e..b712fb7 100644 --- a/Gridicons/Gridicons/Gridicons.swift +++ b/Gridicons/Gridicons/Gridicons.swift @@ -59,6 +59,7 @@ public enum GridiconType: Int { case plus case plugins case play + case plans case phone case pencil case pause @@ -332,6 +333,8 @@ public final class Gridicon: NSObject { return GridiconsGenerated.imageOfGridiconsplugins(size: size) case .play: return GridiconsGenerated.imageOfGridiconsplay(size: size) + case .plans: + return GridiconsGenerated.imageOfGridiconsplans(size: size) case .phone: return GridiconsGenerated.imageOfGridiconsphone(size: size) case .pencil: diff --git a/Gridicons/Gridicons/GridiconsGenerated.swift b/Gridicons/Gridicons/GridiconsGenerated.swift index aca628e..e084855 100644 --- a/Gridicons/Gridicons/GridiconsGenerated.swift +++ b/Gridicons/Gridicons/GridiconsGenerated.swift @@ -3950,7 +3950,61 @@ class GridiconsGenerated: NSObject { context.restoreGState() } - + + class func drawGridiconsplans(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 20, height: 20), resizing: ResizingBehavior = .aspectFit) { + /// General Declarations + let context = UIGraphicsGetCurrentContext()! + + /// Resize to Target Frame + context.saveGState() + let resizedFrame = resizing.apply(rect: CGRect(x: 0, y: 0, width: 20, height: 20), target: targetFrame) + context.translateBy(x: resizedFrame.minX, y: resizedFrame.minY) + context.scaleBy(x: resizedFrame.width / 20, y: resizedFrame.height / 20) + context.translateBy(x: -994, y: -509) + + /// gridicons-plans + do { + context.saveGState() + context.translateBy(x: 992, y: 507) + + /// Group + do { + context.saveGState() + context.translateBy(x: 2, y: 2) + + /// Shape + let shape = UIBezierPath() + shape.move(to: CGPoint(x: 10, y: 0)) + shape.addCurve(to: CGPoint(x: 0, y: 10), controlPoint1: CGPoint(x: 4.5, y: 0), controlPoint2: CGPoint(x: 0, y: 4.5)) + shape.addCurve(to: CGPoint(x: 10, y: 20), controlPoint1: CGPoint(x: 0, y: 15.5), controlPoint2: CGPoint(x: 4.5, y: 20)) + shape.addCurve(to: CGPoint(x: 20, y: 10), controlPoint1: CGPoint(x: 15.5, y: 20), controlPoint2: CGPoint(x: 20, y: 15.5)) + shape.addCurve(to: CGPoint(x: 10, y: 0), controlPoint1: CGPoint(x: 20, y: 4.5), controlPoint2: CGPoint(x: 15.5, y: 0)) + shape.close() + shape.move(to: CGPoint(x: 9, y: 12)) + shape.addLine(to: CGPoint(x: 4, y: 12)) + shape.addLine(to: CGPoint(x: 9, y: 2)) + shape.addLine(to: CGPoint(x: 9, y: 12)) + shape.close() + shape.move(to: CGPoint(x: 11, y: 18)) + shape.addLine(to: CGPoint(x: 11, y: 8)) + shape.addLine(to: CGPoint(x: 16, y: 8)) + shape.addLine(to: CGPoint(x: 11, y: 18)) + shape.close() + shape.move(to: CGPoint(x: 11, y: 18)) + context.saveGState() + UIColor.black.setFill() + shape.fill() + context.restoreGState() + + context.restoreGState() + } + + context.restoreGState() + } + + context.restoreGState() + } + class func drawGridiconsphone(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 12, height: 20), resizing: ResizingBehavior = .aspectFit) { /// General Declarations let context = UIGraphicsGetCurrentContext()! @@ -12765,6 +12819,17 @@ class GridiconsGenerated: NSObject { return image } + class func imageOfGridiconsplans(size: CGSize) -> UIImage { + var image: UIImage + + UIGraphicsBeginImageContextWithOptions(size, false, 0) + GridiconsGenerated.drawGridiconsplans(frame: CGRect(origin: CGPoint.zero, size: size)) + image = UIGraphicsGetImageFromCurrentImageContext()! + UIGraphicsEndImageContext() + + return image + } + class func imageOfGridiconsphone(size: CGSize) -> UIImage { var image: UIImage From c6872c45791dba649de49d4e38094d4189269ed4 Mon Sep 17 00:00:00 2001 From: James Frost Date: Thu, 11 Jan 2018 18:54:22 +0000 Subject: [PATCH 3/8] Bumped to version 0.14 --- Gridicons.podspec | 2 +- Gridicons/Gridicons/Info.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gridicons.podspec b/Gridicons.podspec index 73c34e6..4bf5174 100644 --- a/Gridicons.podspec +++ b/Gridicons.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Gridicons" - s.version = "0.13" + s.version = "0.14" s.summary = "Gridicons is a tiny framework which generates Gridicon images at any resolution." s.homepage = "http://apps.wordpress.com" diff --git a/Gridicons/Gridicons/Info.plist b/Gridicons/Gridicons/Info.plist index 3a5fc4f..cf4a97c 100644 --- a/Gridicons/Gridicons/Info.plist +++ b/Gridicons/Gridicons/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.12 + 0.14 CFBundleSignature ???? CFBundleVersion From f2931fde31fcae3cbea01d89449cc96638d2d052 Mon Sep 17 00:00:00 2001 From: James Frost Date: Mon, 12 Mar 2018 17:29:57 +0000 Subject: [PATCH 4/8] Add multipleUsers icon --- Gridicons/Gridicons/Gridicons.swift | 3 + Gridicons/Gridicons/GridiconsGenerated.swift | 88 +++++++++++++++++++- 2 files changed, 89 insertions(+), 2 deletions(-) diff --git a/Gridicons/Gridicons/Gridicons.swift b/Gridicons/Gridicons/Gridicons.swift index b712fb7..5839229 100644 --- a/Gridicons/Gridicons/Gridicons.swift +++ b/Gridicons/Gridicons/Gridicons.swift @@ -71,6 +71,7 @@ public enum GridiconType: Int { case nextPage case mySitesHorizon case mySites + case multipleUsers case money case minusSmall case minus @@ -357,6 +358,8 @@ public final class Gridicon: NSObject { return GridiconsGenerated.imageOfGridiconsmysites(size: size) case .mySitesHorizon: return GridiconsGenerated.imageOfGridiconsmysiteshorizon(size: size) + case .multipleUsers: + return GridiconsGenerated.imageOfGridiconsmultipleusers(size: size) case .money: return GridiconsGenerated.imageOfGridiconsmoney(size: size) case .minus: diff --git a/Gridicons/Gridicons/GridiconsGenerated.swift b/Gridicons/Gridicons/GridiconsGenerated.swift index e084855..13acd13 100644 --- a/Gridicons/Gridicons/GridiconsGenerated.swift +++ b/Gridicons/Gridicons/GridiconsGenerated.swift @@ -4777,7 +4777,80 @@ class GridiconsGenerated: NSObject { context.restoreGState() } - + + class func drawGridiconsmultipleusers(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 24, height: 16), resizing: ResizingBehavior = .aspectFit) { + /// General Declarations + let context = UIGraphicsGetCurrentContext()! + + /// Resize to Target Frame + context.saveGState() + let resizedFrame = resizing.apply(rect: CGRect(x: 0, y: 0, width: 24, height: 16), target: targetFrame) + context.translateBy(x: resizedFrame.minX, y: resizedFrame.minY) + context.scaleBy(x: resizedFrame.width / 24, y: resizedFrame.height / 16) + context.translateBy(x: -444, y: -291) + + /// gridicons-multiple-users + do { + context.saveGState() + context.translateBy(x: 444, y: 287) + + /// Shape + let shape = UIBezierPath() + shape.move(to: CGPoint(x: 24, y: 10.6)) + shape.addCurve(to: CGPoint(x: 21.4, y: 11.8), controlPoint1: CGPoint(x: 24, y: 11.2), controlPoint2: CGPoint(x: 22.8, y: 11.6)) + shape.addCurve(to: CGPoint(x: 16.6, y: 7.9), controlPoint1: CGPoint(x: 20.5, y: 10.1), controlPoint2: CGPoint(x: 18.7, y: 8.8)) + shape.addCurve(to: CGPoint(x: 17.2, y: 7.1), controlPoint1: CGPoint(x: 16.8, y: 7.6), controlPoint2: CGPoint(x: 17, y: 7.4)) + shape.addLine(to: CGPoint(x: 18, y: 7.1)) + shape.addCurve(to: CGPoint(x: 24, y: 10.6), controlPoint1: CGPoint(x: 21.1, y: 7), controlPoint2: CGPoint(x: 24, y: 8.9)) + shape.close() + shape.move(to: CGPoint(x: 6.8, y: 7)) + shape.addLine(to: CGPoint(x: 6, y: 7)) + shape.addCurve(to: CGPoint(x: 0, y: 10.6), controlPoint1: CGPoint(x: 2.9, y: 7), controlPoint2: CGPoint(x: 0, y: 8.9)) + shape.addCurve(to: CGPoint(x: 2.6, y: 11.8), controlPoint1: CGPoint(x: 0, y: 11.2), controlPoint2: CGPoint(x: 1.2, y: 11.6)) + shape.addCurve(to: CGPoint(x: 7.4, y: 7.9), controlPoint1: CGPoint(x: 3.5, y: 10.1), controlPoint2: CGPoint(x: 5.3, y: 8.8)) + shape.addLine(to: CGPoint(x: 6.8, y: 7)) + shape.close() + shape.move(to: CGPoint(x: 12, y: 8)) + shape.addCurve(to: CGPoint(x: 16, y: 4), controlPoint1: CGPoint(x: 14.2, y: 8), controlPoint2: CGPoint(x: 16, y: 6.2)) + shape.addCurve(to: CGPoint(x: 12, y: 0), controlPoint1: CGPoint(x: 16, y: 1.8), controlPoint2: CGPoint(x: 14.2, y: 0)) + shape.addCurve(to: CGPoint(x: 8, y: 4), controlPoint1: CGPoint(x: 9.8, y: 0), controlPoint2: CGPoint(x: 8, y: 1.8)) + shape.addCurve(to: CGPoint(x: 12, y: 8), controlPoint1: CGPoint(x: 8, y: 6.2), controlPoint2: CGPoint(x: 9.8, y: 8)) + shape.close() + shape.move(to: CGPoint(x: 12, y: 9)) + shape.addCurve(to: CGPoint(x: 4, y: 14), controlPoint1: CGPoint(x: 7.9, y: 9), controlPoint2: CGPoint(x: 4, y: 11.6)) + shape.addCurve(to: CGPoint(x: 12, y: 16), controlPoint1: CGPoint(x: 4, y: 16), controlPoint2: CGPoint(x: 12, y: 16)) + shape.addCurve(to: CGPoint(x: 20, y: 14), controlPoint1: CGPoint(x: 12, y: 16), controlPoint2: CGPoint(x: 20, y: 16)) + shape.addCurve(to: CGPoint(x: 12, y: 9), controlPoint1: CGPoint(x: 20, y: 11.6), controlPoint2: CGPoint(x: 16.1, y: 9)) + shape.close() + shape.move(to: CGPoint(x: 17.7, y: 6)) + shape.addLine(to: CGPoint(x: 18, y: 6)) + shape.addCurve(to: CGPoint(x: 21, y: 3), controlPoint1: CGPoint(x: 19.7, y: 6), controlPoint2: CGPoint(x: 21, y: 4.7)) + shape.addCurve(to: CGPoint(x: 18, y: 0), controlPoint1: CGPoint(x: 21, y: 1.3), controlPoint2: CGPoint(x: 19.7, y: 0)) + shape.addCurve(to: CGPoint(x: 16.7, y: 0.3), controlPoint1: CGPoint(x: 17.5, y: 0), controlPoint2: CGPoint(x: 17.1, y: 0.1)) + shape.addCurve(to: CGPoint(x: 18, y: 4), controlPoint1: CGPoint(x: 17.5, y: 1.3), controlPoint2: CGPoint(x: 18, y: 2.6)) + shape.addCurve(to: CGPoint(x: 17.7, y: 6), controlPoint1: CGPoint(x: 18, y: 4.7), controlPoint2: CGPoint(x: 17.9, y: 5.4)) + shape.close() + shape.move(to: CGPoint(x: 6, y: 6)) + shape.addLine(to: CGPoint(x: 6.3, y: 6)) + shape.addCurve(to: CGPoint(x: 6, y: 4), controlPoint1: CGPoint(x: 6.1, y: 5.4), controlPoint2: CGPoint(x: 6, y: 4.7)) + shape.addCurve(to: CGPoint(x: 7.3, y: 0.3), controlPoint1: CGPoint(x: 6, y: 2.6), controlPoint2: CGPoint(x: 6.5, y: 1.3)) + shape.addCurve(to: CGPoint(x: 6, y: 0), controlPoint1: CGPoint(x: 6.9, y: 0.1), controlPoint2: CGPoint(x: 6.5, y: 0)) + shape.addCurve(to: CGPoint(x: 3, y: 3), controlPoint1: CGPoint(x: 4.3, y: 0), controlPoint2: CGPoint(x: 3, y: 1.3)) + shape.addCurve(to: CGPoint(x: 6, y: 6), controlPoint1: CGPoint(x: 3, y: 4.7), controlPoint2: CGPoint(x: 4.3, y: 6)) + shape.close() + shape.move(to: CGPoint(x: 6, y: 6)) + context.saveGState() + context.translateBy(x: 0, y: 4) + UIColor.black.setFill() + shape.fill() + context.restoreGState() + + context.restoreGState() + } + + context.restoreGState() + } + class func drawGridiconsmoney(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 20, height: 14), resizing: ResizingBehavior = .aspectFit) { /// General Declarations let context = UIGraphicsGetCurrentContext()! @@ -12950,7 +13023,18 @@ class GridiconsGenerated: NSObject { return image } - + + class func imageOfGridiconsmultipleusers(size: CGSize) -> UIImage { + var image: UIImage + + UIGraphicsBeginImageContextWithOptions(size, false, 0) + GridiconsGenerated.drawGridiconsmultipleusers(frame: CGRect(origin: CGPoint.zero, size: size)) + image = UIGraphicsGetImageFromCurrentImageContext()! + UIGraphicsEndImageContext() + + return image + } + class func imageOfGridiconsmoney(size: CGSize) -> UIImage { var image: UIImage From cf6dfb56ef4da53f9b9b5ab1c0780e15cb360725 Mon Sep 17 00:00:00 2001 From: James Frost Date: Tue, 13 Mar 2018 14:25:24 +0000 Subject: [PATCH 5/8] Bumped to version 0.15 --- Gridicons.podspec | 2 +- Gridicons/Gridicons/Info.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gridicons.podspec b/Gridicons.podspec index 4bf5174..c9e5e8b 100644 --- a/Gridicons.podspec +++ b/Gridicons.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Gridicons" - s.version = "0.14" + s.version = "0.15" s.summary = "Gridicons is a tiny framework which generates Gridicon images at any resolution." s.homepage = "http://apps.wordpress.com" diff --git a/Gridicons/Gridicons/Info.plist b/Gridicons/Gridicons/Info.plist index cf4a97c..02d4b12 100644 --- a/Gridicons/Gridicons/Info.plist +++ b/Gridicons/Gridicons/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.14 + 0.15 CFBundleSignature ???? CFBundleVersion From 59b1660371e165e489c3cd1904e0bf2f7ee333d7 Mon Sep 17 00:00:00 2001 From: etoledom Date: Mon, 18 Jun 2018 13:26:23 -0400 Subject: [PATCH 6/8] Add listOrderedRTL icon --- Gridicons/Gridicons/Gridicons.swift | 3 + Gridicons/Gridicons/GridiconsGenerated.swift | 121 +++++++++++++++++++ 2 files changed, 124 insertions(+) diff --git a/Gridicons/Gridicons/Gridicons.swift b/Gridicons/Gridicons/Gridicons.swift index 5839229..c4f94f7 100644 --- a/Gridicons/Gridicons/Gridicons.swift +++ b/Gridicons/Gridicons/Gridicons.swift @@ -84,6 +84,7 @@ public enum GridiconType: Int { case location case listUnordered case listOrdered + case listOrderedRTL case listCheckmark case linkBreak case link @@ -384,6 +385,8 @@ public final class Gridicon: NSObject { return GridiconsGenerated.imageOfGridiconslistunordered(size: size) case .listOrdered: return GridiconsGenerated.imageOfGridiconslistordered(size: size) + case .listOrderedRTL: + return GridiconsGenerated.imageOfGridiconslistorderedrtl(size: size) case .listCheckmark: return GridiconsGenerated.imageOfGridiconslistcheckmark(size: size) case .link: diff --git a/Gridicons/Gridicons/GridiconsGenerated.swift b/Gridicons/Gridicons/GridiconsGenerated.swift index 13acd13..d706aa3 100644 --- a/Gridicons/Gridicons/GridiconsGenerated.swift +++ b/Gridicons/Gridicons/GridiconsGenerated.swift @@ -12259,6 +12259,116 @@ class GridiconsGenerated: NSObject { context.restoreGState() } + + class func drawGridiconslistorderedrtl(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 21, height: 18), resizing: ResizingBehavior = .aspectFit) { + /// General Declarations + let context = UIGraphicsGetCurrentContext()! + + /// Resize to Target Frame + context.saveGState() + let resizedFrame = resizing.apply(rect: CGRect(x: 0, y: 0, width: 21, height: 18), target: targetFrame) + context.translateBy(x: resizedFrame.minX, y: resizedFrame.minY) + context.scaleBy(x: resizedFrame.width / 21, y: resizedFrame.height / 18) + + /// gridicons-list-ordered-rtl + let gridiconslistorderedrtl = UIBezierPath() + gridiconslistorderedrtl.move(to: CGPoint(x: 0, y: 14.91)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 14.91)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 12.96)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 12.96)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 14.91)) + gridiconslistorderedrtl.close() + gridiconslistorderedrtl.move(to: CGPoint(x: 0, y: 9.05)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 9.05)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 7.1)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 7.1)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 9.05)) + gridiconslistorderedrtl.close() + gridiconslistorderedrtl.move(to: CGPoint(x: 0, y: 1.25)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 3.2)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 3.2)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 1.25)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 1.25)) + gridiconslistorderedrtl.close() + gridiconslistorderedrtl.move(to: CGPoint(x: 16.89, y: 1.5)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.17, y: 1.23), controlPoint1: CGPoint(x: 17, y: 1.4), controlPoint2: CGPoint(x: 17.09, y: 1.31)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.15, y: 1.97), controlPoint1: CGPoint(x: 17.16, y: 1.45), controlPoint2: CGPoint(x: 17.15, y: 1.7)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.15, y: 4.18)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 18.35, y: 4.18)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 18.35, y: 0)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.28, y: 0)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 15.79, y: 1.17)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.4, y: 1.89)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.89, y: 1.5)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.89, y: 1.5)) + gridiconslistorderedrtl.close() + gridiconslistorderedrtl.move(to: CGPoint(x: 17.35, y: 9.13)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.3, y: 8.28), controlPoint1: CGPoint(x: 17.83, y: 8.71), controlPoint2: CGPoint(x: 18.15, y: 8.43)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.65, y: 7.86), controlPoint1: CGPoint(x: 18.45, y: 8.14), controlPoint2: CGPoint(x: 18.56, y: 8)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.85, y: 7.45), controlPoint1: CGPoint(x: 18.74, y: 7.73), controlPoint2: CGPoint(x: 18.81, y: 7.59)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.92, y: 7), controlPoint1: CGPoint(x: 18.9, y: 7.31), controlPoint2: CGPoint(x: 18.92, y: 7.16)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.73, y: 6.4), controlPoint1: CGPoint(x: 18.92, y: 6.78), controlPoint2: CGPoint(x: 18.86, y: 6.58)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.22, y: 6), controlPoint1: CGPoint(x: 18.61, y: 6.23), controlPoint2: CGPoint(x: 18.44, y: 6.09)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.46, y: 5.85), controlPoint1: CGPoint(x: 17.99, y: 5.9), controlPoint2: CGPoint(x: 17.74, y: 5.85)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.85, y: 5.92), controlPoint1: CGPoint(x: 17.24, y: 5.85), controlPoint2: CGPoint(x: 17.03, y: 5.87)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.35, y: 6.11), controlPoint1: CGPoint(x: 16.67, y: 5.96), controlPoint2: CGPoint(x: 16.51, y: 6.03)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 15.79, y: 6.52), controlPoint1: CGPoint(x: 16.2, y: 6.19), controlPoint2: CGPoint(x: 16.01, y: 6.33)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.43, y: 7.25)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.91, y: 6.91), controlPoint1: CGPoint(x: 16.61, y: 7.1), controlPoint2: CGPoint(x: 16.77, y: 6.99)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.33, y: 6.8), controlPoint1: CGPoint(x: 17.05, y: 6.84), controlPoint2: CGPoint(x: 17.19, y: 6.8)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.64, y: 6.89), controlPoint1: CGPoint(x: 17.46, y: 6.8), controlPoint2: CGPoint(x: 17.56, y: 6.83)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.75, y: 7.15), controlPoint1: CGPoint(x: 17.71, y: 6.96), controlPoint2: CGPoint(x: 17.75, y: 7.04)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.69, y: 7.4), controlPoint1: CGPoint(x: 17.75, y: 7.24), controlPoint2: CGPoint(x: 17.73, y: 7.32)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.5, y: 7.69), controlPoint1: CGPoint(x: 17.66, y: 7.48), controlPoint2: CGPoint(x: 17.59, y: 7.58)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.9, y: 8.31), controlPoint1: CGPoint(x: 17.4, y: 7.8), controlPoint2: CGPoint(x: 17.21, y: 8.01)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 15.83, y: 9.35)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 15.83, y: 10.09)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 19, y: 10.09)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 19, y: 9.16)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.35, y: 9.16)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.35, y: 9.13)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.35, y: 9.13)) + gridiconslistorderedrtl.close() + gridiconslistorderedrtl.move(to: CGPoint(x: 17.82, y: 13.76)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.82, y: 13.74)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.53, y: 13.34), controlPoint1: CGPoint(x: 18.13, y: 13.66), controlPoint2: CGPoint(x: 18.37, y: 13.52)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.78, y: 12.67), controlPoint1: CGPoint(x: 18.7, y: 13.15), controlPoint2: CGPoint(x: 18.78, y: 12.93)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.4, y: 11.96), controlPoint1: CGPoint(x: 18.78, y: 12.37), controlPoint2: CGPoint(x: 18.65, y: 12.13)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.33, y: 11.71), controlPoint1: CGPoint(x: 18.14, y: 11.79), controlPoint2: CGPoint(x: 17.78, y: 11.71)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.5, y: 11.8), controlPoint1: CGPoint(x: 17.02, y: 11.71), controlPoint2: CGPoint(x: 16.74, y: 11.74)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 15.79, y: 12.13), controlPoint1: CGPoint(x: 16.26, y: 11.87), controlPoint2: CGPoint(x: 16.02, y: 11.98)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.28, y: 12.88)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.15, y: 12.62), controlPoint1: CGPoint(x: 16.58, y: 12.7), controlPoint2: CGPoint(x: 16.87, y: 12.62)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.5, y: 12.69), controlPoint1: CGPoint(x: 17.3, y: 12.62), controlPoint2: CGPoint(x: 17.42, y: 12.64)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.64, y: 12.94), controlPoint1: CGPoint(x: 17.59, y: 12.75), controlPoint2: CGPoint(x: 17.64, y: 12.83)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.74, y: 13.38), controlPoint1: CGPoint(x: 17.64, y: 13.23), controlPoint2: CGPoint(x: 17.34, y: 13.38)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.46, y: 13.38)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.46, y: 14.23)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.73, y: 14.23)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.27, y: 14.28), controlPoint1: CGPoint(x: 16.95, y: 14.23), controlPoint2: CGPoint(x: 17.13, y: 14.24)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.57, y: 14.42), controlPoint1: CGPoint(x: 17.41, y: 14.31), controlPoint2: CGPoint(x: 17.5, y: 14.35)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.66, y: 14.68), controlPoint1: CGPoint(x: 17.63, y: 14.48), controlPoint2: CGPoint(x: 17.66, y: 14.57)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.48, y: 15.01), controlPoint1: CGPoint(x: 17.66, y: 14.83), controlPoint2: CGPoint(x: 17.6, y: 14.94)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.92, y: 15.11), controlPoint1: CGPoint(x: 17.36, y: 15.08), controlPoint2: CGPoint(x: 17.17, y: 15.11)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.37, y: 15.04), controlPoint1: CGPoint(x: 16.75, y: 15.11), controlPoint2: CGPoint(x: 16.57, y: 15.09)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 15.78, y: 14.84), controlPoint1: CGPoint(x: 16.17, y: 15), controlPoint2: CGPoint(x: 15.98, y: 14.93)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 15.78, y: 15.77)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.43, y: 15.95), controlPoint1: CGPoint(x: 16.02, y: 15.86), controlPoint2: CGPoint(x: 16.23, y: 15.92)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.09, y: 16), controlPoint1: CGPoint(x: 16.63, y: 15.98), controlPoint2: CGPoint(x: 16.85, y: 16)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.42, y: 15.67), controlPoint1: CGPoint(x: 17.66, y: 16), controlPoint2: CGPoint(x: 18.1, y: 15.89)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.91, y: 14.75), controlPoint1: CGPoint(x: 18.75, y: 15.44), controlPoint2: CGPoint(x: 18.91, y: 15.14)) + gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.82, y: 13.76), controlPoint1: CGPoint(x: 18.91, y: 14.18), controlPoint2: CGPoint(x: 18.54, y: 13.85)) + gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.82, y: 13.76)) + gridiconslistorderedrtl.close() + context.saveGState() + context.translateBy(x: 1, y: 1) + gridiconslistorderedrtl.usesEvenOddFillRule = true + UIColor.black.setFill() + gridiconslistorderedrtl.fill() + context.restoreGState() + + context.restoreGState() + } //MARK: - Canvas Images @@ -14255,6 +14365,17 @@ class GridiconsGenerated: NSObject { return image } + + class func imageOfGridiconslistorderedrtl(size: CGSize) -> UIImage { + var image: UIImage + + UIGraphicsBeginImageContextWithOptions(size, false, 0) + GridiconsGenerated.drawGridiconslistorderedrtl(frame: CGRect(origin: CGPoint.zero, size: size)) + image = UIGraphicsGetImageFromCurrentImageContext()! + UIGraphicsEndImageContext() + + return image + } //MARK: - Resizing Behavior From e1b38e6750d79a699888b0596c11062f0f1275d7 Mon Sep 17 00:00:00 2001 From: etoledom Date: Mon, 18 Jun 2018 13:32:55 -0400 Subject: [PATCH 7/8] Change path name to `shape` --- Gridicons/Gridicons/GridiconsGenerated.swift | 182 +++++++++---------- 1 file changed, 91 insertions(+), 91 deletions(-) diff --git a/Gridicons/Gridicons/GridiconsGenerated.swift b/Gridicons/Gridicons/GridiconsGenerated.swift index d706aa3..fabd019 100644 --- a/Gridicons/Gridicons/GridiconsGenerated.swift +++ b/Gridicons/Gridicons/GridiconsGenerated.swift @@ -12271,100 +12271,100 @@ class GridiconsGenerated: NSObject { context.scaleBy(x: resizedFrame.width / 21, y: resizedFrame.height / 18) /// gridicons-list-ordered-rtl - let gridiconslistorderedrtl = UIBezierPath() - gridiconslistorderedrtl.move(to: CGPoint(x: 0, y: 14.91)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 14.91)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 12.96)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 12.96)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 14.91)) - gridiconslistorderedrtl.close() - gridiconslistorderedrtl.move(to: CGPoint(x: 0, y: 9.05)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 9.05)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 7.1)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 7.1)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 9.05)) - gridiconslistorderedrtl.close() - gridiconslistorderedrtl.move(to: CGPoint(x: 0, y: 1.25)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 3.2)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 3.2)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 13.24, y: 1.25)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 0, y: 1.25)) - gridiconslistorderedrtl.close() - gridiconslistorderedrtl.move(to: CGPoint(x: 16.89, y: 1.5)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.17, y: 1.23), controlPoint1: CGPoint(x: 17, y: 1.4), controlPoint2: CGPoint(x: 17.09, y: 1.31)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.15, y: 1.97), controlPoint1: CGPoint(x: 17.16, y: 1.45), controlPoint2: CGPoint(x: 17.15, y: 1.7)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.15, y: 4.18)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 18.35, y: 4.18)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 18.35, y: 0)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.28, y: 0)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 15.79, y: 1.17)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.4, y: 1.89)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.89, y: 1.5)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.89, y: 1.5)) - gridiconslistorderedrtl.close() - gridiconslistorderedrtl.move(to: CGPoint(x: 17.35, y: 9.13)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.3, y: 8.28), controlPoint1: CGPoint(x: 17.83, y: 8.71), controlPoint2: CGPoint(x: 18.15, y: 8.43)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.65, y: 7.86), controlPoint1: CGPoint(x: 18.45, y: 8.14), controlPoint2: CGPoint(x: 18.56, y: 8)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.85, y: 7.45), controlPoint1: CGPoint(x: 18.74, y: 7.73), controlPoint2: CGPoint(x: 18.81, y: 7.59)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.92, y: 7), controlPoint1: CGPoint(x: 18.9, y: 7.31), controlPoint2: CGPoint(x: 18.92, y: 7.16)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.73, y: 6.4), controlPoint1: CGPoint(x: 18.92, y: 6.78), controlPoint2: CGPoint(x: 18.86, y: 6.58)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.22, y: 6), controlPoint1: CGPoint(x: 18.61, y: 6.23), controlPoint2: CGPoint(x: 18.44, y: 6.09)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.46, y: 5.85), controlPoint1: CGPoint(x: 17.99, y: 5.9), controlPoint2: CGPoint(x: 17.74, y: 5.85)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.85, y: 5.92), controlPoint1: CGPoint(x: 17.24, y: 5.85), controlPoint2: CGPoint(x: 17.03, y: 5.87)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.35, y: 6.11), controlPoint1: CGPoint(x: 16.67, y: 5.96), controlPoint2: CGPoint(x: 16.51, y: 6.03)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 15.79, y: 6.52), controlPoint1: CGPoint(x: 16.2, y: 6.19), controlPoint2: CGPoint(x: 16.01, y: 6.33)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.43, y: 7.25)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.91, y: 6.91), controlPoint1: CGPoint(x: 16.61, y: 7.1), controlPoint2: CGPoint(x: 16.77, y: 6.99)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.33, y: 6.8), controlPoint1: CGPoint(x: 17.05, y: 6.84), controlPoint2: CGPoint(x: 17.19, y: 6.8)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.64, y: 6.89), controlPoint1: CGPoint(x: 17.46, y: 6.8), controlPoint2: CGPoint(x: 17.56, y: 6.83)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.75, y: 7.15), controlPoint1: CGPoint(x: 17.71, y: 6.96), controlPoint2: CGPoint(x: 17.75, y: 7.04)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.69, y: 7.4), controlPoint1: CGPoint(x: 17.75, y: 7.24), controlPoint2: CGPoint(x: 17.73, y: 7.32)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.5, y: 7.69), controlPoint1: CGPoint(x: 17.66, y: 7.48), controlPoint2: CGPoint(x: 17.59, y: 7.58)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.9, y: 8.31), controlPoint1: CGPoint(x: 17.4, y: 7.8), controlPoint2: CGPoint(x: 17.21, y: 8.01)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 15.83, y: 9.35)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 15.83, y: 10.09)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 19, y: 10.09)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 19, y: 9.16)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.35, y: 9.16)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.35, y: 9.13)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.35, y: 9.13)) - gridiconslistorderedrtl.close() - gridiconslistorderedrtl.move(to: CGPoint(x: 17.82, y: 13.76)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.82, y: 13.74)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.53, y: 13.34), controlPoint1: CGPoint(x: 18.13, y: 13.66), controlPoint2: CGPoint(x: 18.37, y: 13.52)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.78, y: 12.67), controlPoint1: CGPoint(x: 18.7, y: 13.15), controlPoint2: CGPoint(x: 18.78, y: 12.93)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.4, y: 11.96), controlPoint1: CGPoint(x: 18.78, y: 12.37), controlPoint2: CGPoint(x: 18.65, y: 12.13)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.33, y: 11.71), controlPoint1: CGPoint(x: 18.14, y: 11.79), controlPoint2: CGPoint(x: 17.78, y: 11.71)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.5, y: 11.8), controlPoint1: CGPoint(x: 17.02, y: 11.71), controlPoint2: CGPoint(x: 16.74, y: 11.74)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 15.79, y: 12.13), controlPoint1: CGPoint(x: 16.26, y: 11.87), controlPoint2: CGPoint(x: 16.02, y: 11.98)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.28, y: 12.88)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.15, y: 12.62), controlPoint1: CGPoint(x: 16.58, y: 12.7), controlPoint2: CGPoint(x: 16.87, y: 12.62)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.5, y: 12.69), controlPoint1: CGPoint(x: 17.3, y: 12.62), controlPoint2: CGPoint(x: 17.42, y: 12.64)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.64, y: 12.94), controlPoint1: CGPoint(x: 17.59, y: 12.75), controlPoint2: CGPoint(x: 17.64, y: 12.83)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.74, y: 13.38), controlPoint1: CGPoint(x: 17.64, y: 13.23), controlPoint2: CGPoint(x: 17.34, y: 13.38)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.46, y: 13.38)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.46, y: 14.23)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 16.73, y: 14.23)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.27, y: 14.28), controlPoint1: CGPoint(x: 16.95, y: 14.23), controlPoint2: CGPoint(x: 17.13, y: 14.24)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.57, y: 14.42), controlPoint1: CGPoint(x: 17.41, y: 14.31), controlPoint2: CGPoint(x: 17.5, y: 14.35)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.66, y: 14.68), controlPoint1: CGPoint(x: 17.63, y: 14.48), controlPoint2: CGPoint(x: 17.66, y: 14.57)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.48, y: 15.01), controlPoint1: CGPoint(x: 17.66, y: 14.83), controlPoint2: CGPoint(x: 17.6, y: 14.94)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.92, y: 15.11), controlPoint1: CGPoint(x: 17.36, y: 15.08), controlPoint2: CGPoint(x: 17.17, y: 15.11)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.37, y: 15.04), controlPoint1: CGPoint(x: 16.75, y: 15.11), controlPoint2: CGPoint(x: 16.57, y: 15.09)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 15.78, y: 14.84), controlPoint1: CGPoint(x: 16.17, y: 15), controlPoint2: CGPoint(x: 15.98, y: 14.93)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 15.78, y: 15.77)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 16.43, y: 15.95), controlPoint1: CGPoint(x: 16.02, y: 15.86), controlPoint2: CGPoint(x: 16.23, y: 15.92)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.09, y: 16), controlPoint1: CGPoint(x: 16.63, y: 15.98), controlPoint2: CGPoint(x: 16.85, y: 16)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.42, y: 15.67), controlPoint1: CGPoint(x: 17.66, y: 16), controlPoint2: CGPoint(x: 18.1, y: 15.89)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 18.91, y: 14.75), controlPoint1: CGPoint(x: 18.75, y: 15.44), controlPoint2: CGPoint(x: 18.91, y: 15.14)) - gridiconslistorderedrtl.addCurve(to: CGPoint(x: 17.82, y: 13.76), controlPoint1: CGPoint(x: 18.91, y: 14.18), controlPoint2: CGPoint(x: 18.54, y: 13.85)) - gridiconslistorderedrtl.addLine(to: CGPoint(x: 17.82, y: 13.76)) - gridiconslistorderedrtl.close() + let shape = UIBezierPath() + shape.move(to: CGPoint(x: 0, y: 14.91)) + shape.addLine(to: CGPoint(x: 13.24, y: 14.91)) + shape.addLine(to: CGPoint(x: 13.24, y: 12.96)) + shape.addLine(to: CGPoint(x: 0, y: 12.96)) + shape.addLine(to: CGPoint(x: 0, y: 14.91)) + shape.close() + shape.move(to: CGPoint(x: 0, y: 9.05)) + shape.addLine(to: CGPoint(x: 13.24, y: 9.05)) + shape.addLine(to: CGPoint(x: 13.24, y: 7.1)) + shape.addLine(to: CGPoint(x: 0, y: 7.1)) + shape.addLine(to: CGPoint(x: 0, y: 9.05)) + shape.close() + shape.move(to: CGPoint(x: 0, y: 1.25)) + shape.addLine(to: CGPoint(x: 0, y: 3.2)) + shape.addLine(to: CGPoint(x: 13.24, y: 3.2)) + shape.addLine(to: CGPoint(x: 13.24, y: 1.25)) + shape.addLine(to: CGPoint(x: 0, y: 1.25)) + shape.close() + shape.move(to: CGPoint(x: 16.89, y: 1.5)) + shape.addCurve(to: CGPoint(x: 17.17, y: 1.23), controlPoint1: CGPoint(x: 17, y: 1.4), controlPoint2: CGPoint(x: 17.09, y: 1.31)) + shape.addCurve(to: CGPoint(x: 17.15, y: 1.97), controlPoint1: CGPoint(x: 17.16, y: 1.45), controlPoint2: CGPoint(x: 17.15, y: 1.7)) + shape.addLine(to: CGPoint(x: 17.15, y: 4.18)) + shape.addLine(to: CGPoint(x: 18.35, y: 4.18)) + shape.addLine(to: CGPoint(x: 18.35, y: 0)) + shape.addLine(to: CGPoint(x: 17.28, y: 0)) + shape.addLine(to: CGPoint(x: 15.79, y: 1.17)) + shape.addLine(to: CGPoint(x: 16.4, y: 1.89)) + shape.addLine(to: CGPoint(x: 16.89, y: 1.5)) + shape.addLine(to: CGPoint(x: 16.89, y: 1.5)) + shape.close() + shape.move(to: CGPoint(x: 17.35, y: 9.13)) + shape.addCurve(to: CGPoint(x: 18.3, y: 8.28), controlPoint1: CGPoint(x: 17.83, y: 8.71), controlPoint2: CGPoint(x: 18.15, y: 8.43)) + shape.addCurve(to: CGPoint(x: 18.65, y: 7.86), controlPoint1: CGPoint(x: 18.45, y: 8.14), controlPoint2: CGPoint(x: 18.56, y: 8)) + shape.addCurve(to: CGPoint(x: 18.85, y: 7.45), controlPoint1: CGPoint(x: 18.74, y: 7.73), controlPoint2: CGPoint(x: 18.81, y: 7.59)) + shape.addCurve(to: CGPoint(x: 18.92, y: 7), controlPoint1: CGPoint(x: 18.9, y: 7.31), controlPoint2: CGPoint(x: 18.92, y: 7.16)) + shape.addCurve(to: CGPoint(x: 18.73, y: 6.4), controlPoint1: CGPoint(x: 18.92, y: 6.78), controlPoint2: CGPoint(x: 18.86, y: 6.58)) + shape.addCurve(to: CGPoint(x: 18.22, y: 6), controlPoint1: CGPoint(x: 18.61, y: 6.23), controlPoint2: CGPoint(x: 18.44, y: 6.09)) + shape.addCurve(to: CGPoint(x: 17.46, y: 5.85), controlPoint1: CGPoint(x: 17.99, y: 5.9), controlPoint2: CGPoint(x: 17.74, y: 5.85)) + shape.addCurve(to: CGPoint(x: 16.85, y: 5.92), controlPoint1: CGPoint(x: 17.24, y: 5.85), controlPoint2: CGPoint(x: 17.03, y: 5.87)) + shape.addCurve(to: CGPoint(x: 16.35, y: 6.11), controlPoint1: CGPoint(x: 16.67, y: 5.96), controlPoint2: CGPoint(x: 16.51, y: 6.03)) + shape.addCurve(to: CGPoint(x: 15.79, y: 6.52), controlPoint1: CGPoint(x: 16.2, y: 6.19), controlPoint2: CGPoint(x: 16.01, y: 6.33)) + shape.addLine(to: CGPoint(x: 16.43, y: 7.25)) + shape.addCurve(to: CGPoint(x: 16.91, y: 6.91), controlPoint1: CGPoint(x: 16.61, y: 7.1), controlPoint2: CGPoint(x: 16.77, y: 6.99)) + shape.addCurve(to: CGPoint(x: 17.33, y: 6.8), controlPoint1: CGPoint(x: 17.05, y: 6.84), controlPoint2: CGPoint(x: 17.19, y: 6.8)) + shape.addCurve(to: CGPoint(x: 17.64, y: 6.89), controlPoint1: CGPoint(x: 17.46, y: 6.8), controlPoint2: CGPoint(x: 17.56, y: 6.83)) + shape.addCurve(to: CGPoint(x: 17.75, y: 7.15), controlPoint1: CGPoint(x: 17.71, y: 6.96), controlPoint2: CGPoint(x: 17.75, y: 7.04)) + shape.addCurve(to: CGPoint(x: 17.69, y: 7.4), controlPoint1: CGPoint(x: 17.75, y: 7.24), controlPoint2: CGPoint(x: 17.73, y: 7.32)) + shape.addCurve(to: CGPoint(x: 17.5, y: 7.69), controlPoint1: CGPoint(x: 17.66, y: 7.48), controlPoint2: CGPoint(x: 17.59, y: 7.58)) + shape.addCurve(to: CGPoint(x: 16.9, y: 8.31), controlPoint1: CGPoint(x: 17.4, y: 7.8), controlPoint2: CGPoint(x: 17.21, y: 8.01)) + shape.addLine(to: CGPoint(x: 15.83, y: 9.35)) + shape.addLine(to: CGPoint(x: 15.83, y: 10.09)) + shape.addLine(to: CGPoint(x: 19, y: 10.09)) + shape.addLine(to: CGPoint(x: 19, y: 9.16)) + shape.addLine(to: CGPoint(x: 17.35, y: 9.16)) + shape.addLine(to: CGPoint(x: 17.35, y: 9.13)) + shape.addLine(to: CGPoint(x: 17.35, y: 9.13)) + shape.close() + shape.move(to: CGPoint(x: 17.82, y: 13.76)) + shape.addLine(to: CGPoint(x: 17.82, y: 13.74)) + shape.addCurve(to: CGPoint(x: 18.53, y: 13.34), controlPoint1: CGPoint(x: 18.13, y: 13.66), controlPoint2: CGPoint(x: 18.37, y: 13.52)) + shape.addCurve(to: CGPoint(x: 18.78, y: 12.67), controlPoint1: CGPoint(x: 18.7, y: 13.15), controlPoint2: CGPoint(x: 18.78, y: 12.93)) + shape.addCurve(to: CGPoint(x: 18.4, y: 11.96), controlPoint1: CGPoint(x: 18.78, y: 12.37), controlPoint2: CGPoint(x: 18.65, y: 12.13)) + shape.addCurve(to: CGPoint(x: 17.33, y: 11.71), controlPoint1: CGPoint(x: 18.14, y: 11.79), controlPoint2: CGPoint(x: 17.78, y: 11.71)) + shape.addCurve(to: CGPoint(x: 16.5, y: 11.8), controlPoint1: CGPoint(x: 17.02, y: 11.71), controlPoint2: CGPoint(x: 16.74, y: 11.74)) + shape.addCurve(to: CGPoint(x: 15.79, y: 12.13), controlPoint1: CGPoint(x: 16.26, y: 11.87), controlPoint2: CGPoint(x: 16.02, y: 11.98)) + shape.addLine(to: CGPoint(x: 16.28, y: 12.88)) + shape.addCurve(to: CGPoint(x: 17.15, y: 12.62), controlPoint1: CGPoint(x: 16.58, y: 12.7), controlPoint2: CGPoint(x: 16.87, y: 12.62)) + shape.addCurve(to: CGPoint(x: 17.5, y: 12.69), controlPoint1: CGPoint(x: 17.3, y: 12.62), controlPoint2: CGPoint(x: 17.42, y: 12.64)) + shape.addCurve(to: CGPoint(x: 17.64, y: 12.94), controlPoint1: CGPoint(x: 17.59, y: 12.75), controlPoint2: CGPoint(x: 17.64, y: 12.83)) + shape.addCurve(to: CGPoint(x: 16.74, y: 13.38), controlPoint1: CGPoint(x: 17.64, y: 13.23), controlPoint2: CGPoint(x: 17.34, y: 13.38)) + shape.addLine(to: CGPoint(x: 16.46, y: 13.38)) + shape.addLine(to: CGPoint(x: 16.46, y: 14.23)) + shape.addLine(to: CGPoint(x: 16.73, y: 14.23)) + shape.addCurve(to: CGPoint(x: 17.27, y: 14.28), controlPoint1: CGPoint(x: 16.95, y: 14.23), controlPoint2: CGPoint(x: 17.13, y: 14.24)) + shape.addCurve(to: CGPoint(x: 17.57, y: 14.42), controlPoint1: CGPoint(x: 17.41, y: 14.31), controlPoint2: CGPoint(x: 17.5, y: 14.35)) + shape.addCurve(to: CGPoint(x: 17.66, y: 14.68), controlPoint1: CGPoint(x: 17.63, y: 14.48), controlPoint2: CGPoint(x: 17.66, y: 14.57)) + shape.addCurve(to: CGPoint(x: 17.48, y: 15.01), controlPoint1: CGPoint(x: 17.66, y: 14.83), controlPoint2: CGPoint(x: 17.6, y: 14.94)) + shape.addCurve(to: CGPoint(x: 16.92, y: 15.11), controlPoint1: CGPoint(x: 17.36, y: 15.08), controlPoint2: CGPoint(x: 17.17, y: 15.11)) + shape.addCurve(to: CGPoint(x: 16.37, y: 15.04), controlPoint1: CGPoint(x: 16.75, y: 15.11), controlPoint2: CGPoint(x: 16.57, y: 15.09)) + shape.addCurve(to: CGPoint(x: 15.78, y: 14.84), controlPoint1: CGPoint(x: 16.17, y: 15), controlPoint2: CGPoint(x: 15.98, y: 14.93)) + shape.addLine(to: CGPoint(x: 15.78, y: 15.77)) + shape.addCurve(to: CGPoint(x: 16.43, y: 15.95), controlPoint1: CGPoint(x: 16.02, y: 15.86), controlPoint2: CGPoint(x: 16.23, y: 15.92)) + shape.addCurve(to: CGPoint(x: 17.09, y: 16), controlPoint1: CGPoint(x: 16.63, y: 15.98), controlPoint2: CGPoint(x: 16.85, y: 16)) + shape.addCurve(to: CGPoint(x: 18.42, y: 15.67), controlPoint1: CGPoint(x: 17.66, y: 16), controlPoint2: CGPoint(x: 18.1, y: 15.89)) + shape.addCurve(to: CGPoint(x: 18.91, y: 14.75), controlPoint1: CGPoint(x: 18.75, y: 15.44), controlPoint2: CGPoint(x: 18.91, y: 15.14)) + shape.addCurve(to: CGPoint(x: 17.82, y: 13.76), controlPoint1: CGPoint(x: 18.91, y: 14.18), controlPoint2: CGPoint(x: 18.54, y: 13.85)) + shape.addLine(to: CGPoint(x: 17.82, y: 13.76)) + shape.close() context.saveGState() context.translateBy(x: 1, y: 1) - gridiconslistorderedrtl.usesEvenOddFillRule = true + shape.usesEvenOddFillRule = true UIColor.black.setFill() - gridiconslistorderedrtl.fill() + shape.fill() context.restoreGState() context.restoreGState() From 8f00dc7582c3f01302bc17635ad8f4a5d9723c37 Mon Sep 17 00:00:00 2001 From: etoledom Date: Mon, 25 Jun 2018 08:55:53 -0400 Subject: [PATCH 8/8] Bumped to version 0.16 --- Gridicons.podspec | 2 +- Gridicons/Gridicons/Info.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gridicons.podspec b/Gridicons.podspec index c9e5e8b..a5c9c71 100644 --- a/Gridicons.podspec +++ b/Gridicons.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Gridicons" - s.version = "0.15" + s.version = "0.16" s.summary = "Gridicons is a tiny framework which generates Gridicon images at any resolution." s.homepage = "http://apps.wordpress.com" diff --git a/Gridicons/Gridicons/Info.plist b/Gridicons/Gridicons/Info.plist index 02d4b12..cb7d979 100644 --- a/Gridicons/Gridicons/Info.plist +++ b/Gridicons/Gridicons/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.15 + 0.16 CFBundleSignature ???? CFBundleVersion