Bubble/Threaded/Components/ListStyle.swift

20 lines
481 B
Swift

//Made by Lumaa
import SwiftUI
extension View {
func listThreaded(tint: Color = Color(uiColor: UIColor.label)) -> some View {
self
.scrollContentBackground(.hidden)
.tint(tint)
.background(Color.appBackground)
.listStyle(.inset)
}
func listRowThreaded() -> some View {
self
.listRowSeparator(.hidden)
.listRowBackground(Color.appBackground)
.tint(Color.blue)
}
}