diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-04-26 17:18:09 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-04-26 17:18:09 +0200 |
| commit | cd8a7cf4a8dd77e11184202f6b67161383942652 (patch) | |
| tree | 0f781a27810dbb24759f6a947efc49a3663952ec /Sources/Patterns/Pattern.swift | |
| parent | 1418fe49617f5d35b14b19fe0ead15fcc43526c8 (diff) | |
Make the properties public
Diffstat (limited to 'Sources/Patterns/Pattern.swift')
| -rw-r--r-- | Sources/Patterns/Pattern.swift | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Sources/Patterns/Pattern.swift b/Sources/Patterns/Pattern.swift index 4fbc528..6c63870 100644 --- a/Sources/Patterns/Pattern.swift +++ b/Sources/Patterns/Pattern.swift @@ -1,16 +1,16 @@ import SwiftUI public struct Pattern: View { + + @Binding public var design: TileDesign; + public var pixelSize: CGFloat = 2.0; + public var foregroundColor: Color = .black + public var backgroundColor: Color = .white private var patternSize: CGFloat { pixelSize * 8.0; } - @Binding var design: TileDesign; - var pixelSize: CGFloat = 2.0; - var foregroundColor: Color = .black - var backgroundColor: Color = .white - public var body: some View { GeometryReader { gr in VStack(spacing: 0) { |