Skip to content

Commit

Permalink
Stroke border sample
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaTesser committed Dec 24, 2024
1 parent 6eb3490 commit 33800ab
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Binary file not shown.
1 change: 1 addition & 0 deletions SwiftUIPlayground/Samples.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ public let samples: [String: AnyView] = [
title: "Shapes", samples:
[
"Progress Indicator Arc": AnyView(ProgressIndicatorArcSample()),
"Stroke Border": AnyView(StrokeBorderSample()),
]
)),
"View": AnyView(SamplesList(
Expand Down
23 changes: 23 additions & 0 deletions SwiftUIPlayground/Samples/Shapes/StrokeBorderSample.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// StrokeBorderSample.swift
// SwiftUIPlayground
//
// Created by Taha Tesser on 24.12.2024.
//

import SwiftUI

struct StrokeBorderSample: View {
var body: some View {
Circle()
.strokeBorder(.blue.opacity(0.2), lineWidth: 70)
.strokeBorder(.blue.opacity(0.4), lineWidth: 50)
.strokeBorder(.blue.opacity(0.5), lineWidth: 30)
.strokeBorder(.blue, lineWidth: 10)
.padding()
}
}

#Preview {
StrokeBorderSample()
}

0 comments on commit 33800ab

Please sign in to comment.