Highlights
- Pro
Pinned Loading
-
-
SwiftUI + Swift.Shader CD
SwiftUI + Swift.Shader CD 1//
2// CDView.swift
3// CD
4//
5// Created by Daniel Kuntz on 7/3/23.
-
Extension to add a cool 3D floating ...
Extension to add a cool 3D floating effect to any UIView. 1extension UIView {
2func add3DFloatingEffect(withDepth depth: Double = 1 / 12, duration: Double = 5) {
3let depthAngle = depth * .pi
4let rotationAnimationY = CABasicAnimation(keyPath: "transform.rotation.y")
5rotationAnimationY.fromValue = NSNumber(floatLiteral: -1 * depthAngle)
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.