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 UIKit | |
| public final class SpatialContainerView: UIVisualEffectView { | |
| private lazy var borderLayer: CAShapeLayer = { | |
| let layer = CAShapeLayer() | |
| layer.strokeColor = UIColor.white.withAlphaComponent(0.2).cgColor | |
| layer.fillColor = UIColor.clear.cgColor | |
| layer.lineWidth = borderWidth | |
| return layer | |
| }() |
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 ModelIO | |
| import MetalKit | |
| public struct ObjectParser { | |
| // mesh contains all the vertices, unordered | |
| public let mesh: MTKMesh | |
| // submesh takes the vertices and with indicies places them in order | |
| public let submeshes: [MTKSubmesh] | |
| public var textures: [MTLTexture] |
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 SwiftUI | |
| struct InteractiveTiles: View { | |
| let rows = 6 | |
| let columns = 8 | |
| let tileSize: CGFloat = 48 | |
| let spacing: CGFloat = 2 | |
| var gridSize: CGSize { | |
| CGSize( |
OlderNewer