mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-02 13:29:41 +00:00
0b5e764556
* Automatically remove spaces in server names If a server name includes a space (which can happen if the string is pasted / autocompleted), this space is removed, which results in the app not crashing. Fixes #1599 Signed-off-by: Paul Schuetz <pa.schuetz@web.de> * Format --------- Signed-off-by: Paul Schuetz <pa.schuetz@web.de> Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
30 lines
655 B
Swift
30 lines
655 B
Swift
import DesignSystem
|
|
import Models
|
|
import Status
|
|
import SwiftUI
|
|
|
|
public struct CardsListView: View {
|
|
@Environment(Theme.self) private var theme
|
|
|
|
let cards: [Card]
|
|
|
|
public init(cards: [Card]) {
|
|
self.cards = cards
|
|
}
|
|
|
|
public var body: some View {
|
|
List {
|
|
ForEach(cards) { card in
|
|
StatusRowCardView(card: card)
|
|
.listRowBackground(theme.primaryBackgroundColor)
|
|
.padding(.vertical, 8)
|
|
}
|
|
}
|
|
.scrollContentBackground(.hidden)
|
|
.background(theme.primaryBackgroundColor)
|
|
.listStyle(.plain)
|
|
.navigationTitle("explore.section.trending.links")
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
}
|
|
}
|