Skip to content

Commit 4923435

Browse files
committed
SwiftUI: add placeholder for Label.
This adds the `Label` interface as a placeholder for the type.
1 parent b864653 commit 4923435

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright © 2022 Saleem Abdulrasool <compnerd@compnerd.org>
2+
// SPDX-License-Identifier: BSD-3-Clause
3+
4+
import SwiftWin32
5+
6+
public struct Label<Title: View, Icon: View> {
7+
}
8+
9+
extension Label: View {
10+
public typealias Body = SwiftWin32.Label
11+
12+
public var body: SwiftWin32.Label {
13+
return SwiftWin32.Label(frame: .zero)
14+
}
15+
}
16+
17+
extension SwiftWin32.Label: View {
18+
public typealias Body = Never
19+
}

0 commit comments

Comments
 (0)