<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=SwiftUI_-_Using_Labels</id>
	<title>SwiftUI - Using Labels - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=SwiftUI_-_Using_Labels"/>
	<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=SwiftUI_-_Using_Labels&amp;action=history"/>
	<updated>2026-05-18T10:25:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://performiq.com/kb/index.php?title=SwiftUI_-_Using_Labels&amp;diff=5394&amp;oldid=prev</id>
		<title>PeterHarding: Created page with &quot;=SwiftUI Labels=  See - https://developer.apple.com/documentation/swiftui/label  &lt;pre&gt; Label(&quot;Lightning&quot;, systemImage: &quot;bolt.fill&quot;) &lt;/pre&gt;  &lt;pre&gt; Label(&quot;Lightning&quot;, systemImage: &quot;bolt.fill&quot;)     .labelStyle(.titleOnly) &lt;/pre&gt;  Label Styles - .titleOnly, .iconOnly and .titleAndIcon  &lt;pre&gt; struct RedBorderedLabelStyle: LabelStyle {     func makeBody(configuration: Configuration) -&gt; some View {         Label(configuration)             .border(Color.red)     } } &lt;/pre&gt;  &lt;pre...&quot;</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=SwiftUI_-_Using_Labels&amp;diff=5394&amp;oldid=prev"/>
		<updated>2024-07-30T22:22:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=SwiftUI Labels=  See - https://developer.apple.com/documentation/swiftui/label  &amp;lt;pre&amp;gt; Label(&amp;quot;Lightning&amp;quot;, systemImage: &amp;quot;bolt.fill&amp;quot;) &amp;lt;/pre&amp;gt;  &amp;lt;pre&amp;gt; Label(&amp;quot;Lightning&amp;quot;, systemImage: &amp;quot;bolt.fill&amp;quot;)     .labelStyle(.titleOnly) &amp;lt;/pre&amp;gt;  Label Styles - .titleOnly, .iconOnly and .titleAndIcon  &amp;lt;pre&amp;gt; struct RedBorderedLabelStyle: LabelStyle {     func makeBody(configuration: Configuration) -&amp;gt; some View {         Label(configuration)             .border(Color.red)     } } &amp;lt;/pre&amp;gt;  &amp;lt;pre...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=SwiftUI Labels=&lt;br /&gt;
&lt;br /&gt;
See - https://developer.apple.com/documentation/swiftui/label&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Label(&amp;quot;Lightning&amp;quot;, systemImage: &amp;quot;bolt.fill&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Label(&amp;quot;Lightning&amp;quot;, systemImage: &amp;quot;bolt.fill&amp;quot;)&lt;br /&gt;
    .labelStyle(.titleOnly)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Label Styles - .titleOnly, .iconOnly and .titleAndIcon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
struct RedBorderedLabelStyle: LabelStyle {&lt;br /&gt;
    func makeBody(configuration: Configuration) -&amp;gt; some View {&lt;br /&gt;
        Label(configuration)&lt;br /&gt;
            .border(Color.red)&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
VStack {&lt;br /&gt;
    Label(&amp;quot;Rain&amp;quot;, systemImage: &amp;quot;cloud.rain&amp;quot;)&lt;br /&gt;
    Label(&amp;quot;Snow&amp;quot;, systemImage: &amp;quot;snow&amp;quot;)&lt;br /&gt;
    Label(&amp;quot;Sun&amp;quot;, systemImage: &amp;quot;sun.max&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
.labelStyle(.iconOnly)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Label {&lt;br /&gt;
    Text(person.fullName)&lt;br /&gt;
        .font(.body)&lt;br /&gt;
        .foregroundColor(.primary)&lt;br /&gt;
    Text(person.title)&lt;br /&gt;
        .font(.subheadline)&lt;br /&gt;
        .foregroundColor(.secondary)&lt;br /&gt;
} icon: {&lt;br /&gt;
    Circle()&lt;br /&gt;
        .fill(person.profileColor)&lt;br /&gt;
        .frame(width: 44, height: 44, alignment: .center)&lt;br /&gt;
        .overlay(Text(person.initials))&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:SwiftUI]]&lt;br /&gt;
[[Category:Examples]]&lt;/div&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
</feed>