this app does not collect any identifiable personal data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
''' | |
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your | |
agreement to the following terms, and your use, installation, modification or redistribution of this Apple software | |
constitutes acceptance of these terms. If you do not agree with these terms, please do not use, install, modify or | |
redistribute this Apple software. | |
In consideration of your agreement to abide by the following terms, and subject to these terms, Apple grants you a | |
personal, non-exclusive license, under Apple's copyrights in this original Apple software (the "Apple Software"), to |
Payment will be charged to your Apple account at confirmation of purchase. Subscriptions will automatically renew unless auto-renew is turned off at least 24 hours before the end of current period. Your account will be charged according to your plan for renewal within 24 hours prior to the end of the current period. You can manage or turn off auto-renew in your Apple ID account settings at any time after purchase.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import RealityKit | |
extension ModelEntity { | |
@MainActor | |
convenience init(remoteURL: URL, fileExtension: FileExtension) async throws { | |
let (data, _) = try await URLSession.shared.data(from: remoteURL) | |
let fileUrl = URL(filePath: NSTemporaryDirectory()) | |
.appending(path: UUID().uuidString) |