Fix the width of the indicator so that it would stop reflowing the cell when changed to star

This commit is contained in:
Maurice Parker 2020-07-10 10:13:18 -05:00
parent bf8a52d710
commit 2f99cd01c1

View File

@ -13,6 +13,8 @@ struct TimelineItemStatusView: View {
var status: TimelineItemStatus var status: TimelineItemStatus
@ViewBuilder var statusView: some View { @ViewBuilder var statusView: some View {
ZStack {
Spacer().frame(width: 12)
switch status { switch status {
case .showUnread: case .showUnread:
AppAssets.timelineUnread AppAssets.timelineUnread
@ -31,6 +33,7 @@ struct TimelineItemStatusView: View {
.opacity(0) .opacity(0)
} }
} }
}
var body: some View { var body: some View {
statusView statusView