mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-02-02 11:33:02 +01:00
23 lines
486 B
Swift
23 lines
486 B
Swift
//
|
|
// TrailingIconLabelStyle.swift
|
|
// Xcodes
|
|
//
|
|
// Created by Daniel Chick on 3/11/24.
|
|
// Copyright © 2024 Robots and Pencils. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct TrailingIconLabelStyle: LabelStyle {
|
|
func makeBody(configuration: Configuration) -> some View {
|
|
HStack {
|
|
configuration.title
|
|
configuration.icon
|
|
}
|
|
}
|
|
}
|
|
|
|
extension LabelStyle where Self == TrailingIconLabelStyle {
|
|
static var trailingIcon: Self { Self() }
|
|
}
|