Fix the width of the indicator so that it would stop reflowing the cell when changed to star
This commit is contained in:
parent
bf8a52d710
commit
2f99cd01c1
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user