Bubble/Threaded/Components/ListStyle.swift

20 lines
481 B
Swift
Raw Normal View History

2024-01-04 18:11:07 +01:00
//Made by Lumaa
import SwiftUI
extension View {
2024-01-06 02:50:29 +01:00
func listThreaded(tint: Color = Color(uiColor: UIColor.label)) -> some View {
self
.scrollContentBackground(.hidden)
2024-01-06 02:50:29 +01:00
.tint(tint)
.background(Color.appBackground)
.listStyle(.inset)
}
func listRowThreaded() -> some View {
self
.listRowSeparator(.hidden)
.listRowBackground(Color.appBackground)
2024-01-26 23:01:50 +01:00
.tint(Color.blue)
2024-01-04 18:11:07 +01:00
}
}