Fix handling of non-ready profiles
- Omit title while isLoading, to not show former profile name - Animate on isLoading
This commit is contained in:
parent
b9248cbb89
commit
7036ca5f41
|
@ -96,7 +96,7 @@ struct ProfileView: View {
|
||||||
ExtraSection(currentProfile: currentProfile)
|
ExtraSection(currentProfile: currentProfile)
|
||||||
DiagnosticsSection(currentProfile: currentProfile)
|
DiagnosticsSection(currentProfile: currentProfile)
|
||||||
}
|
}
|
||||||
}
|
}.themeAnimation(on: isLoading)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
|
|
|
@ -32,7 +32,10 @@ public class ObservableProfile: ValueHolder, ObservableObject {
|
||||||
@Published public var value: Profile
|
@Published public var value: Profile
|
||||||
|
|
||||||
public var name: String {
|
public var name: String {
|
||||||
!value.header.isPlaceholder ? value.header.name : ""
|
guard !isLoading && !value.isPlaceholder else {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return value.header.name
|
||||||
}
|
}
|
||||||
|
|
||||||
public init() {
|
public init() {
|
||||||
|
|
Loading…
Reference in New Issue