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
| // | |
| // V3DViewContainer.swift | |
| // Vision3DUIKit | |
| // | |
| // Created by Steven Troughton-Smith on 02/02/2024. | |
| // | |
| import UIKit | |
| import SwiftUI |
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 Darwin | |
| import Foundation | |
| import UIKit | |
| @objc | |
| class CGSVGDocument: NSObject { } | |
| var CGSVGDocumentRetain: (@convention(c) (CGSVGDocument?) -> Unmanaged<CGSVGDocument>?) = load("CGSVGDocumentRetain") | |
| var CGSVGDocumentRelease: (@convention(c) (CGSVGDocument?) -> Void) = load("CGSVGDocumentRelease") | |
| var CGSVGDocumentCreateFromData: (@convention(c) (CFData?, CFDictionary?) -> Unmanaged<CGSVGDocument>?) = load("CGSVGDocumentCreateFromData") |
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 * as React from 'react'; | |
| import { padStart, eq, isEqual } from 'lodash'; | |
| export function useDebugDeps(name: string, deps: unknown[]): void { | |
| const previousDepsRef = React.useRef(deps); | |
| const countRef = React.useRef(0); | |
| printDepsChange(name, deps, previousDepsRef.current, countRef.current); | |
| previousDepsRef.current = deps; |