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 DynamicView: View { | |
let width = 0.95 * UIScreen.main.bounds.width | |
let height: CGFloat = 200 | |
let x = UIScreen.main.bounds.width / 2 | |
let y: CGFloat = 110 | |
let closedWidth = 0.6 * UIScreen.main.bounds.width | |
let closedHeight: CGFloat = 40 |
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 DynamicView: View { | |
let width = 0.95 * UIScreen.main.bounds.width | |
let height: CGFloat = 200 | |
let x = UIScreen.main.bounds.width / 2 | |
let y: CGFloat = 110 | |
var waveIcon: some View { | |
HStack(spacing: 3) { |
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 width = 0.95 * UIScreen.main.bounds.width | |
let height: CGFloat = 220 | |
let x = UIScreen.main.bounds.width / 2 | |
let y: CGFloat = 120 | |
var body: some View { | |
ZStack { |
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 { | |
var body: some View { | |
ZStack { | |
Image("wallpaper") // get the assets here: https://github.com/haneenmahd/DynamicIsland-assets | |
.resizable() | |
.scaledToFill() | |
} | |
.preferredColorScheme(.dark) |
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 firstCircle = 1.0 | |
@State private var secondCircle = 1.0 | |
var body: some View { | |
ZStack { | |
Circle() | |
.stroke(.blue) |