blob: c8b9af7ad1e4dafafcefb8cbbb3746e32250a6f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
//
// Separator.swift
// MullvadVPN
//
// Created by Jon Petersson on 2024-11-20.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import SwiftUI
struct RowSeparator: View {
let color: Color
let edgeInsets: EdgeInsets
init(color: Color = Color(.secondaryColor), edgeInsets: EdgeInsets = .init()) {
self.color = color
self.edgeInsets = edgeInsets
}
var body: some View {
color
.frame(height: UIMetrics.TableView.separatorHeight)
.padding(edgeInsets)
}
}
#Preview {
RowSeparator(color: Color(.primaryColor))
}
|