All Projects → kieranb662 → SwiftUI-bez

kieranb662 / SwiftUI-bez

Licence: MIT license
Utilities for working with bezier curves in SwiftUI

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to SwiftUI-bez

Morphi
Shapes for SwiftUI ♡☾
Stars: ✭ 54 (-32.5%)
Mutual labels:  shape, path
PathBuilder
SwiftUI result builder for Path
Stars: ✭ 48 (-40%)
Mutual labels:  path, swiftui
NavigationRouter
A router implementation designed for complex modular apps, written in Swift
Stars: ✭ 89 (+11.25%)
Mutual labels:  path, swiftui
Shapes
📐 Net standard geometry/shape manipulation library, can be used to merge / split shapes
Stars: ✭ 95 (+18.75%)
Mutual labels:  shape, path
SquareImageView
SquareImageView is a simple wrapper library for Android ImageView
Stars: ✭ 28 (-65%)
Mutual labels:  shape
MultiplatformPlayground
Kotlin Multiplatform project in Jetpack Compose & SwiftUI with shared ViewModel layer and File upload
Stars: ✭ 72 (-10%)
Mutual labels:  swiftui
CodeEditorView
SwiftUI code editor view for iOS and macOS
Stars: ✭ 461 (+476.25%)
Mutual labels:  swiftui
spiro
Swift Playgrounds 4 app created on the iPad
Stars: ✭ 48 (-40%)
Mutual labels:  swiftui
Note.it
A Cut Down, Simple, Text Editor For Mac And iOS. Built With SwiftUI (Mostly).
Stars: ✭ 20 (-75%)
Mutual labels:  swiftui
panther
Perception-Aware Trajectory Planner in Dynamic Environments
Stars: ✭ 115 (+43.75%)
Mutual labels:  path
kavsoft-swiftui-animations
SwiftUI animation tutorials, all of demos are consisted of youtube videos at website of kavsoft. 🔗 https://kavsoft.dev
Stars: ✭ 205 (+156.25%)
Mutual labels:  swiftui
SwiftUICalculator
A calculator app using SwiftUI which is introduced in WWDC19
Stars: ✭ 33 (-58.75%)
Mutual labels:  swiftui
BottomNavigation-RichPath-Sample
BottomNavigation RichPath Sample
Stars: ✭ 76 (-5%)
Mutual labels:  path
SwiftUIDrag
A simple, customizable, and intuitive SwiftUI wrapper-view enabling dragging, floating, and/or collapsing for its content.
Stars: ✭ 42 (-47.5%)
Mutual labels:  swiftui
guide-to-becoming
แหล่งรวบรวมข้อมูลสำหรับคนที่อยากจะพัฒนาตัวเองในด้านต่างๆจากผู้เริ่มต้นสู่ระดับเทพ
Stars: ✭ 23 (-71.25%)
Mutual labels:  path
Windows11
💻 Windows 11 in SwiftUI.
Stars: ✭ 177 (+121.25%)
Mutual labels:  swiftui
AVPlayer-SwiftUI
Using AVPlayer in SwiftUI
Stars: ✭ 204 (+155%)
Mutual labels:  swiftui
node-match-path
Matches a URL against a path. Parameters, wildcards, RegExp.
Stars: ✭ 30 (-62.5%)
Mutual labels:  path
WWDCNotes
WWDCNotes.com content
Stars: ✭ 343 (+328.75%)
Mutual labels:  swiftui
iOS-App
🕹️ iOS application of HardcoreTap game
Stars: ✭ 17 (-78.75%)
Mutual labels:  swiftui

SwiftUI Swift 5.1 Swift 5.1 kieranb662 followers

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:

  • Interpolation Functions
  • Derivatives
  • Arc Lengths
  • Segmentation
  • Subdivision
  • Lookup Table Generation
  • Path Description -> Normalized SwiftUI Shape Conversion

Quick Start

  1. Snag that URL from the github repo
  2. In Xcode -> File -> Swift Packages -> Add Package Dependencies
  3. Paste the URL Into the box
  4. Specify the minimum version number (1.0.5)
  5. Copy/Paste the following snippet Into The ContentView.swift file
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)
    }
}

Mathematical Background

bez Info

Example Uses

The PSlider component of the Sliders SwiftUI Library

Path Slider Gif

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].