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 | |
struct HomeView: View { | |
var body: some View { | |
Text("HomeView") | |
} | |
} | |
struct FavoriteView: View { | |
var body: some View { | |
Text("FavoriteView") |
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 | |
struct ContentView: View { | |
let halfScreenWidth = UIScreen.main.bounds.width / 2 | |
let magnification: CGFloat = 1.8 | |
var body: some View { | |
ScrollView(.vertical, showsIndicators: false) { | |
horizontalBalls | |
Spacer() |
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 | |
struct ContentView: View { | |
@State var isLongPress = false | |
@State var isTap = false | |
var body: some View { | |
NavigationStack { | |
Button { | |
} label: { |
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 PlaygroundSupport | |
import SwiftUI | |
import SceneKit | |
struct ContentView: View { | |
@State var isFavorite = false | |
var body: some View { | |
VStack(spacing: 30) { | |
HStack(spacing: 20) { |
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 | |
struct ContentView: View { | |
@State private var initOffset: CGFloat = .zero | |
@State private var offset: CGFloat = .zero | |
@State private var closeButtonYPosition: CGFloat = .zero | |
let headerHeight: CGFloat = 300 | |
var body: some View { |
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 | |
struct ContentView: View { | |
@State private var initOffset: CGFloat = .zero | |
@State private var offset: CGFloat = .zero | |
@State private var headerHeight: CGFloat = 300 | |
@State private var scale: CGFloat = 1.0 | |
@State private var blurRadius: CGFloat = .zero |
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 | |
struct ContentView: View { | |
@State private var colors: [Color] = [ | |
.black, | |
.blue, | |
.brown, | |
.cyan, | |
.gray, | |
.green, |