mirror of
https://github.com/somegeekintn/SimDirs.git
synced 2026-03-25 08:55:54 +00:00
28 lines
559 B
Swift
28 lines
559 B
Swift
//
|
|
// PathRow.swift
|
|
// SimDirs
|
|
//
|
|
// Created by Casey Fleser on 6/1/22.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct PathRow: View {
|
|
var title : String
|
|
var path : String
|
|
|
|
var body: some View {
|
|
HStack {
|
|
Text("\(title): \(path)")
|
|
.truncationMode(/*@START_MENU_TOKEN@*/.middle/*@END_MENU_TOKEN@*/)
|
|
Spacer()
|
|
PathActions(path: path)
|
|
}
|
|
}
|
|
}
|
|
|
|
struct PathRow_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
PathRow(title: "Desktop Path", path: "~/Desktop")
|
|
}
|
|
}
|