mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Show loading video
This commit is contained in:
parent
9d2e6f117d
commit
5cfcffc885
@ -44,10 +44,16 @@ struct VideoDetails: View {
|
|||||||
|
|
||||||
VStack(alignment: .leading, spacing: 2) {
|
VStack(alignment: .leading, spacing: 2) {
|
||||||
HStack {
|
HStack {
|
||||||
Text(model.videoForDisplay?.channel.name ?? "Yattee")
|
if let name = model.videoForDisplay?.channel.name, !name.isEmpty {
|
||||||
|
Text(name)
|
||||||
.font(.subheadline)
|
.font(.subheadline)
|
||||||
.fontWeight(.semibold)
|
.fontWeight(.semibold)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
|
} else if model.videoBeingOpened != nil {
|
||||||
|
Text("Yattee")
|
||||||
|
.font(.subheadline)
|
||||||
|
.redacted(reason: .placeholder)
|
||||||
|
}
|
||||||
|
|
||||||
if let video, !video.isLocal {
|
if let video, !video.isLocal {
|
||||||
Group {
|
Group {
|
||||||
|
Loading…
Reference in New Issue
Block a user