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 diff --git a/Gridicons.podspec b/Gridicons.podspec index 73c34e6..a5c9c71 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.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/Gridicons.swift b/Gridicons/Gridicons/Gridicons.swift index e92498e..c4f94f7 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 @@ -70,6 +71,7 @@ public enum GridiconType: Int { case nextPage case mySitesHorizon case mySites + case multipleUsers case money case minusSmall case minus @@ -82,6 +84,7 @@ public enum GridiconType: Int { case location case listUnordered case listOrdered + case listOrderedRTL case listCheckmark case linkBreak case link @@ -332,6 +335,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: @@ -354,6 +359,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: @@ -378,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 aca628e..fabd019 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()! @@ -4723,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()! @@ -12132,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 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) + shape.usesEvenOddFillRule = true + UIColor.black.setFill() + shape.fill() + context.restoreGState() + + context.restoreGState() + } //MARK: - Canvas Images @@ -12765,6 +13002,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 @@ -12885,7 +13133,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 @@ -14106,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 diff --git a/Gridicons/Gridicons/Info.plist b/Gridicons/Gridicons/Info.plist index 3a5fc4f..cb7d979 100644 --- a/Gridicons/Gridicons/Info.plist +++ b/Gridicons/Gridicons/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.12 + 0.16 CFBundleSignature ???? CFBundleVersion