-
-
Save laevandus/a63aa0588022c3e9e97b4d992a156f5d to your computer and use it in GitHub Desktop.
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 PulseView: View { | |
@State private var isActive = false | |
var body: some View { | |
VStack(spacing: 16) { | |
HStack { | |
Image(systemName: "moonphase.first.quarter") | |
.symbolEffect(.pulse, isActive: isActive) | |
Image(systemName: "moonphase.first.quarter") | |
.symbolEffect(.pulse, options: .speed(0.1), isActive: isActive) | |
Image(systemName: "moonphase.first.quarter") | |
.symbolEffect(.pulse, options: .speed(5), isActive: isActive) | |
} | |
.imageScale(.large) | |
Button("Pulse") { isActive.toggle() } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment