This file contains 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 | |
import SceneKit | |
import AVFoundation | |
// the video is from https://www.videvo.net/video/chicago-skate-park-from-above/578690/#rs=video-box | |
struct ContentView: View { | |
var body: some View { | |
CustomSceneView() | |
.ignoresSafeArea() |
This file contains 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
// Just create a project for iOS 17 and put it in ContentView.swift | |
struct ContentView: View { | |
@State var colors : [Color] = [.blue, .red, .green, .yellow, .brown, .mint, .indigo, .pink, .teal] | |
var body: some View { | |
NavigationStack{ | |
ScrollView(.vertical){ | |
VStack(items: colors){ color in |
This file contains 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
struct ContentView: View { | |
let columns: Int = 28 | |
var body: some View{ | |
ZStack{ | |
Color.clear | |
HStack(spacing: 0){ | |
ForEach(0..<columns, id:\.self){ i in | |
ColumnView(delay: 0, offsetY: offsetY(i), color: .blue) |
This file contains 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
// | |
// ContentView.swift | |
// | |
// Carousel with Parallax Effect SwiftUI | |
// Created by Igor Shelopaev on 10.08.2022. | |
// | |
import SwiftUI | |
import Combine |