-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
463 additions
and
501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
import SwiftUI | ||
import CoreGraphicsSupport | ||
import Algorithms | ||
import CoreGraphicsSupport | ||
import Observation | ||
import VectorSupport | ||
import Sketches | ||
import SwiftUI | ||
import VectorSupport | ||
|
||
struct ContentView: View { | ||
|
||
@State | ||
var sketch = Sketch() | ||
|
||
var body: some View { | ||
SketchEditorView(sketch: $sketch) | ||
} | ||
} | ||
|
||
|
||
struct A: View { | ||
|
||
// var body: some View { | ||
// SketchCanvas() | ||
// } | ||
|
||
@State | ||
var points: [CGPoint] = [[50, 50], [250, 50], [300, 100]] | ||
|
||
var body: some View { | ||
ZStack { | ||
PathCanvas(points: $points) | ||
CustomStrokeView(points: points) | ||
.contentShape(.interaction, EmptyShape()) | ||
.contentShape(.interaction, EmptyShape()) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.