Do not blink circle while connected
This commit is contained in:
parent
cc681dfeab
commit
d3bd41b251
|
@ -53,7 +53,7 @@ struct ProfileRow: View {
|
||||||
|
|
||||||
private let isActive: Bool
|
private let isActive: Bool
|
||||||
|
|
||||||
@State private var connectedOpacity = 1.0
|
// @State private var connectedOpacity = 1.0
|
||||||
|
|
||||||
init(isActive: Bool) {
|
init(isActive: Bool) {
|
||||||
currentVPNState = .shared
|
currentVPNState = .shared
|
||||||
|
@ -90,13 +90,13 @@ struct ProfileRow: View {
|
||||||
private var profileImage: some View {
|
private var profileImage: some View {
|
||||||
if isConnected {
|
if isConnected {
|
||||||
Image(systemName: themeProfileConnectedImage)
|
Image(systemName: themeProfileConnectedImage)
|
||||||
.opacity(connectedOpacity)
|
// .opacity(connectedOpacity)
|
||||||
.onAppear {
|
// .onAppear {
|
||||||
connectedOpacity = 1.0
|
// connectedOpacity = 1.0
|
||||||
withAnimation(.easeInOut(duration: 1.0).repeatForever(autoreverses: true)) {
|
// withAnimation(.easeInOut(duration: 1.0).repeatForever(autoreverses: true)) {
|
||||||
connectedOpacity = 0.05
|
// connectedOpacity = 0.05
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
} else if isActive {
|
} else if isActive {
|
||||||
Image(systemName: themeProfileActiveImage)
|
Image(systemName: themeProfileActiveImage)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue