Bez is a swift package aimed at making Bézier curves easy to work with and manipulate.
Try out all that bez has to offer by creating your own shapes using the bez editor app available for free on iOS 13.4 and greater.
The various utilities included are:
import SwiftUI
import bez
struct ContentView: View {
@ObservedObject var polybezier: PolyBezier = PolyBezier(Circle().path(in: .init(x: 50, y: 100, width: 100, height: 100)))
var body: some View {
NavigationView {
PathEditor(polybezier: _polybezier, name: "Shape",
save: { (name , path) in print(path)})
.navigationBarTitle("Bez Editor", displayMode: .inline)
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView().colorScheme(.dark)
}
}
The PSlider
component of the Sliders SwiftUI Library
link |
Stars: 93 |
Last commit: 3 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics