SVGKit v2.1.0 Release Notes
Release Date: 2018-10-30 // over 4 years ago-
π FINAL major release on the 2.x branch. All future development will be on the new 3.x branch.
KEY CHANGES
- π Improved alpha/color/transparency handling
- π Improved/fixed changes introduced by iOS 7/8/9/10
- β‘οΈ Updated to add support to iPhones 7/8/9/X
- β Added support for building projects that include Apple Watch
- β Added support for building projects that include tvOS
- π Fixed some edge-cases in smooth curves
- π Fixed some edge-cases in elliptical paths
- β‘οΈ Updated Cocoa Lumberjack to 3.x
- π Handled some possible errors with loading from URL
- π Improved Carthage settings
- π Improved CocoaPods settings
- π Fixed the zooming code provided in the Demo projects
- π Improved support for measurements in Inches and Centimetres
- Converted to ARC
CONTRIBUTORS
- @dreampiggy
- @efirestone
- @amcalgates
- @pwesten
- @beanandbean
- @Speakus
- AS/JF
- @RenGate
- @spromicky
- @avinashdongarwar
- @aronkool
- @sushihangover
- @cpboyd
- @vitalii-tym
- Josh Berkheimer
- @Nonouf
- @rawrmaan
- @victorsosa
- @cpboyd
- @lakario
- @petertribe
- @brunogama
- Marcel Schmitz
- @ReadmeCritic
- @alexandre-g
- @cxa
- @JohnWong
- @flemingm
- @russellentrata
- @MaddTheSane
- @adamgit
Previous changes from v2.0.0
-
π First major release on the 2.x branch.
β‘οΈ This is the version most of us have been using in production for over a year, with live fixes and updates.
KEY CHANGES
- β¬οΈ Cleaner integration of CocoaLumberjack, + upgraded to Lumberjack v2.0.0
- π Many improvements to SVG shape parsers, support many more SVG files
- β Full test-suite from W3C (hundreds of SVGs you can test in the demo app)
- π Many improvements to CSS parsing, support for many more CSS rules and features
- π Support more features of Gradient rendering
- π Better text-handling (still not great: someone please take the old fork that uses CoreText instead of CATextLayer and update + merge it!)
- π Better support for Retina devices
π All features / additions / fixes compared to v1.2:
π Fixed two minor memory leaks
π Fixed issue where SVG height was getting scaled to 0
π Fix set didRegisterInternalRedrawObservers to false after removing observers
π Fix spelling errors in flag names
β Add failing tests for setting image multiple times on SVGKFastImageView
π Support iPad Pro
β Add info on using the latest SVGKit with cocoapods
β added bundle to convenience initializer method
passing bundle via paramter instead of global state
β added setBundle feature to SVGKSourceLocalFile
β integrated CocoaLumberjack as library dependency
β Added iPhone 6s and 6s Plus support
π² Custom context logging for SVGKit
LineTo pairs can be separated by comma.
π Support visibility:hidden and display:none
π Support dashes and underscores in selectors
π Support https: prefix for SVGImageElement
π Fixed many compiler warnings
π Fixed several memory leaks
0οΈβ£ Replace default font on text elements.
π Fix the z command so that it returns the current point of path
π Fix for SVGs which have radius larger than w/h
β ADDED: complete W3C official TestSuite for SVG
β ADDED: SVGKSource and all subclasses now support NSCopying
Radial gradients with objectBoundingBox are now scaled and translated
π Fix the handling of the element
π Fix relative positioning bug in elliptical arcs.
β Add support for the elliptical arc command in paths
β‘οΈ Updating CocoaLumberjack to 2.0.0.
π Improvements for userSpaceOnUse linear gradients
β ADDED: better error-handling for bad URLs and for when there's no internet
π Fixed some obscure crashing bugs in parser
π Improve linear gradient handling for objectBoundingBox units
π fixes some potential data loss silencing a few warnings
β Add support for relative lengths to circles, ellipses and lines
Do some preprocessing on data urls by removing whitespace
π More robust inline style parsing
Convert inches to inches
π Provides basic support for the SVG element
β Add support for skewX and skewY transformations
π Fixed a bug with 'Smooth Curveto' and 'Smooth Quadratic Curveto' path
β Added demo example file to test radial gradient opacity fix
π Fixed crash on iOS 8 if any CAShapeLayer is empty
π Fixed crash when changing a SVGKLayeredImageView image
π Fixed bug on conversion from millimeter to inches and inches to milimeters
π Improve parsing to avoid redundant copying and stack allocation
β Remove synthesizers of child properties
β More robust test cases
Only apply clipping masks to elements that have the clip-path attribute, not to their children too
iPad Air 2 Compatibility
pass CGPathElement instead of CGPoint
π fix CGPoint iterator (C array)
π Fix iOS 8 bug with assert fail on infinity CGFloat
π Implement retain-release tests for the iOS framework
π Improve stringFromSource to use the NSData+NSInputStream category.
β Remove Element.h import
β‘οΈ Updating the project settings so NSAssert does not get raised on production builds
π Fix for external stylesheets to open the stream before reading from it.
β Add support for the textArea element from TinySVG 1.2.
π Improve SVGTextElement to have support for text-anchor and fill
π Handle viewBoxes with no white space -- for example, viewBox="0,0,100,100"
π Allow white space delimited lists in SVG css attributes
β Add support for stroke-dasharray attribute
π FIXED: Loading images from the web via SVGKSourceURL
π Fixed how SVG-source images are rendered.
π Changed to support retina resolution when making a bitmap mask.
π Change SVGTextElement to not render blocky text on retina displays
β ADDED: Can load SVG files from NSData sources, with working URL relative
β Add ImageAspectRatio sample to the demo app.
Implemented preserveAspectRatio for images.
Finished implementation of
β Added the ability to load SVG images from relative URLs.
π fix memory leak of NSDates
Change CLANG_CXX_LIBRARY to libc++ in the podspec
π Fixed "rotate" transform type.0οΈβ£ EXPERIMENTAL (these are included in 2.0.0 but are not active by default - you can use them)
using SVGKit.h file as framework header
CONTRIBUTORS
@rhcad
@andmar1x
@ArcRain
@dpletter
@sweetmandm
@dpletter
@newmaniese
@samskiter
@requilence
@MaddTheSane
gaunts
Jorge Ouahbi
@buscarini
imac
@Anubis88
@tonyd256
@BrandonZacharie
@chuckhendo
@BadPirate
@freeatnet
@alaija
@dgileadi
@Dschee
@seltzered
@amcalgates
@sciutand
@russellentrata
@flemingm
@alexandre-g
@gumob
@rance-attack
@guylachish
@edave
BjΓΈrn Olav Ruud