showsIndicator in a better place
This commit is contained in:
parent
951b60a846
commit
6894abb4bf
|
@ -143,14 +143,13 @@ struct CompactPostView: View {
|
||||||
|
|
||||||
if !status.mediaAttachments.isEmpty {
|
if !status.mediaAttachments.isEmpty {
|
||||||
if status.mediaAttachments.count > 1 {
|
if status.mediaAttachments.count > 1 {
|
||||||
ScrollView(.horizontal) {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
HStack(alignment: .firstTextBaseline, spacing: 5) {
|
HStack(alignment: .firstTextBaseline, spacing: 5) {
|
||||||
ForEach(status.mediaAttachments) { attachment in
|
ForEach(status.mediaAttachments) { attachment in
|
||||||
PostAttachment(attachment: attachment)
|
PostAttachment(attachment: attachment)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.scrollIndicators(.hidden)
|
|
||||||
.scrollClipDisabled()
|
.scrollClipDisabled()
|
||||||
} else {
|
} else {
|
||||||
PostAttachment(attachment: status.mediaAttachments.first!)
|
PostAttachment(attachment: status.mediaAttachments.first!)
|
||||||
|
|
Loading…
Reference in New Issue