From fd0dbc85024099c65f36ac1a50f90b6241b0c740 Mon Sep 17 00:00:00 2001 From: Chris Vasselli Date: Fri, 23 Jun 2023 14:14:42 +0900 Subject: [PATCH 1/3] Fix build failure on visionOS. --- Sources/SVGLayer.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SVGLayer.m b/Sources/SVGLayer.m index 641c865..64fe13b 100644 --- a/Sources/SVGLayer.m +++ b/Sources/SVGLayer.m @@ -20,7 +20,7 @@ @implementation SVGLayer { - (void)commonInit { _shapeLayers = [NSMutableArray new]; -#if TARGET_OS_IPHONE +#if TARGET_OS_IPHONE && !TARGET_OS_XR self.shouldRasterize = YES; self.rasterizationScale = UIScreen.mainScreen.scale; #endif @@ -75,7 +75,7 @@ - (void)setPaths:(NSArray *)paths continue; } CAShapeLayer * const layer = [CAShapeLayer new]; - #if TARGET_OS_IPHONE + #if TARGET_OS_IPHONE && !TARGET_OS_XR layer.contentsScale = UIScreen.mainScreen.scale; #endif From 276a7d72aeb346e25fd1220736f9b3fd32ce30d2 Mon Sep 17 00:00:00 2001 From: Chris Vasselli Date: Wed, 5 Jul 2023 08:29:37 +0900 Subject: [PATCH 2/3] Update changelog. --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec6d060..a948512 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ All notable changes to this project will be documented in this file. Items under ## [Unreleased] ### Fixes -- Support for shortcuts with leading zeros as described in issue (https://github.com/pocketsvg/PocketSVG/issues/204) [Vladimir Roganov](https://github.com/elisar4) [#205](https://github.com/pocketsvg/PocketSVG/pull/205) +- Support for shortcuts with leading zeros as described in issue (https://github.com/pocketsvg/PocketSVG/issues/212) [Chris Vasselli](https://github.com/chrisvasselli) +- Fix build on visionOS (https://github.com/pocketsvg/PocketSVG/issues/204) [Vladimir Roganov](https://github.com/elisar4) [#205](https://github.com/pocketsvg/PocketSVG/pull/205) ## [2.7.2] ### Fixes From 31400d853c95393d98ce6921dc3013d6160cc94d Mon Sep 17 00:00:00 2001 From: Chris Vasselli Date: Tue, 25 Jul 2023 23:19:53 -0400 Subject: [PATCH 3/3] Update visionOS name --- Sources/SVGLayer.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SVGLayer.m b/Sources/SVGLayer.m index 64fe13b..0f4828e 100644 --- a/Sources/SVGLayer.m +++ b/Sources/SVGLayer.m @@ -20,7 +20,7 @@ @implementation SVGLayer { - (void)commonInit { _shapeLayers = [NSMutableArray new]; -#if TARGET_OS_IPHONE && !TARGET_OS_XR +#if TARGET_OS_IPHONE && !TARGET_OS_VISION self.shouldRasterize = YES; self.rasterizationScale = UIScreen.mainScreen.scale; #endif @@ -75,7 +75,7 @@ - (void)setPaths:(NSArray *)paths continue; } CAShapeLayer * const layer = [CAShapeLayer new]; - #if TARGET_OS_IPHONE && !TARGET_OS_XR + #if TARGET_OS_IPHONE && !TARGET_OS_VISION layer.contentsScale = UIScreen.mainScreen.scale; #endif