Skip to content

Commit

Permalink
Update for 0.6.18 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Sep 22, 2023
1 parent 7434bc3 commit f713a3d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 23 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions Euclid.podspec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Euclid",
"version": "0.6.17",
"version": "0.6.18",
"license": {
"type": "MIT",
"file": "LICENSE.md"
Expand All @@ -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,
Expand Down
12 changes: 8 additions & 4 deletions Euclid.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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)";
Expand Down Expand Up @@ -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)";
Expand Down Expand Up @@ -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;
};
Expand All @@ -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;
};
Expand Down
17 changes: 0 additions & 17 deletions Example/RealityKitViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -83,7 +68,5 @@ class RealityKitViewController: UIViewController {
camera.transform = Transform(translation: cameraTranslation)
camera.look(at: .zero, from: cameraTranslation, relativeTo: nil)
}

#endif
}
}

0 comments on commit f713a3d

Please sign in to comment.