diff --git a/CHANGELOG.md b/CHANGELOG.md index 902cd832..1d0c912c 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## [0.6.18](https://github.com/nicklockwood/Euclid/releases/tag/0.6.18) (2023-09-22) + +- Fixed crash on iOS 16 when building with Xcode 15 +- Fixed bug in `Path.subpaths` calculation +- Added `Polygon.center` computed property +- Added `LineSegment`/`Plane` intersection method +- Added `Mesh.withoutTexcoords()` method +- Redundant texture coordinates are now excluded from RealityKit export +- Redundant vertex normals are now excluded from SceneKit export + ## [0.6.17](https://github.com/nicklockwood/Euclid/releases/tag/0.6.17) (2023-08-22) - Added `Mesh.stlData()` function for exporting binary STL file data diff --git a/Euclid.podspec.json b/Euclid.podspec.json index b3e44114..50692fec 100644 --- a/Euclid.podspec.json +++ b/Euclid.podspec.json @@ -1,6 +1,6 @@ { "name": "Euclid", - "version": "0.6.17", + "version": "0.6.18", "license": { "type": "MIT", "file": "LICENSE.md" @@ -10,7 +10,7 @@ "authors": "Nick Lockwood", "source": { "git": "https://github.com/nicklockwood/Euclid.git", - "tag": "0.6.17" + "tag": "0.6.18" }, "source_files": "Sources", "requires_arc": true, diff --git a/Euclid.xcodeproj/project.pbxproj b/Euclid.xcodeproj/project.pbxproj index ae59ac63..63676696 100644 --- a/Euclid.xcodeproj/project.pbxproj +++ b/Euclid.xcodeproj/project.pbxproj @@ -768,7 +768,7 @@ "@executable_path/../Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 0.6.17; + MARKETING_VERSION = 0.6.18; OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=75"; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.Euclid; PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)"; @@ -801,7 +801,7 @@ "@executable_path/../Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 0.6.17; + MARKETING_VERSION = 0.6.18; OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=75"; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.Euclid; PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)"; @@ -831,8 +831,10 @@ PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.EuclidTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvos appletvsimulator"; + SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx"; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES; SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,3,6"; }; name = Debug; }; @@ -854,8 +856,10 @@ PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.EuclidTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvos appletvsimulator"; + SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx"; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES; SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,3,6"; }; name = Release; }; diff --git a/Example/RealityKitViewController.swift b/Example/RealityKitViewController.swift index 9e7858d8..a4fcf66a 100644 --- a/Example/RealityKitViewController.swift +++ b/Example/RealityKitViewController.swift @@ -17,21 +17,6 @@ class RealityKitViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() - #if targetEnvironment(simulator) - - let alert = UIAlertController( - title: "Unsupported", - message: """ - RealityKit is not supported on iOS simulator. Run on a real - iPhone/iPad or using Designed for iPad on an ARM Mac. - """, - preferredStyle: .alert - ) - alert.addAction(UIAlertAction(title: "OK", style: .cancel)) - present(alert, animated: true) - - #else - let arView = ARView( frame: view.frame, cameraMode: .nonAR, @@ -83,7 +68,5 @@ class RealityKitViewController: UIViewController { camera.transform = Transform(translation: cameraTranslation) camera.look(at: .zero, from: cameraTranslation, relativeTo: nil) } - - #endif } }