Skip to content

Commit 33800ab

Browse files
committed
Stroke border sample
1 parent 6eb3490 commit 33800ab

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

SwiftUIPlayground/Samples.swift

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public let samples: [String: AnyView] = [
172172
title: "Shapes", samples:
173173
[
174174
"Progress Indicator Arc": AnyView(ProgressIndicatorArcSample()),
175+
"Stroke Border": AnyView(StrokeBorderSample()),
175176
]
176177
)),
177178
"View": AnyView(SamplesList(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// StrokeBorderSample.swift
3+
// SwiftUIPlayground
4+
//
5+
// Created by Taha Tesser on 24.12.2024.
6+
//
7+
8+
import SwiftUI
9+
10+
struct StrokeBorderSample: View {
11+
var body: some View {
12+
Circle()
13+
.strokeBorder(.blue.opacity(0.2), lineWidth: 70)
14+
.strokeBorder(.blue.opacity(0.4), lineWidth: 50)
15+
.strokeBorder(.blue.opacity(0.5), lineWidth: 30)
16+
.strokeBorder(.blue, lineWidth: 10)
17+
.padding()
18+
}
19+
}
20+
21+
#Preview {
22+
StrokeBorderSample()
23+
}

0 commit comments

Comments
 (0)