All Projects β†’ kieranb662 β†’ SwiftUI-Shapes

kieranb662 / SwiftUI-Shapes

Licence: MIT license
Commonly Used Shapes and Utilities In SwiftUI

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to SwiftUI-Shapes

Swiftuix
Extensions and additions to the standard SwiftUI library.
Stars: ✭ 4,087 (+7759.62%)
Mutual labels:  swift-package-manager, swiftui
SwiftDown
πŸ“¦ A themable markdown editor component for your SwiftUI apps.
Stars: ✭ 203 (+290.38%)
Mutual labels:  swift-package-manager, swiftui
kImageAnnotator
Tool for annotating images
Stars: ✭ 55 (+5.77%)
Mutual labels:  drawing, shapes
SwiftUI-Color-Kit
SwiftUI Color Pickers, Gradient Pickers And All The Utilities Needed To Make Your Own!
Stars: ✭ 120 (+130.77%)
Mutual labels:  swift-package-manager, swiftui
visioStencils
My 2,700 visio 🎨 shapes, stencils, symbols, and icons collection to visually represent IT infrastructure
Stars: ✭ 43 (-17.31%)
Mutual labels:  drawing, shapes
Laden
SwiftUI loading indicator view
Stars: ✭ 23 (-55.77%)
Mutual labels:  swift-package-manager, swiftui
Scenekit Scnline
Draw a tube or thick line in SceneKit
Stars: ✭ 49 (-5.77%)
Mutual labels:  drawing, swift-package-manager
VisualDebugger
The most elegant and easiest way to visual you data in playground
Stars: ✭ 22 (-57.69%)
Mutual labels:  drawing, swift-package-manager
ConsoleUI
Rasterize SwiftUI views to images from macOS terminal
Stars: ✭ 52 (+0%)
Mutual labels:  swift-package-manager, swiftui
ResponderChain
Cross-platform first responder handling without subclassing views or making custom ViewRepresentables in SwiftUI. Similar to FocusState but for iOS 13+
Stars: ✭ 69 (+32.69%)
Mutual labels:  swift-package-manager, swiftui
tapit-app
App which lets two people share their social media details by simply putting one phone on top of the other ("tapping"). Currently in development by Nikita Mounier.
Stars: ✭ 18 (-65.38%)
Mutual labels:  swift-package-manager, swiftui
swift-composable-app-example
Example iOS app built with module composition in mind.
Stars: ✭ 79 (+51.92%)
Mutual labels:  swift-package-manager, swiftui
column-text-view-ui
πŸ“„ Column Text View is an adaptive UI component that renders text in columns, horizontally [iOS 12, UIKit, TextKit, SwiftUI].
Stars: ✭ 11 (-78.85%)
Mutual labels:  swift-package-manager, swiftui
CurrencyText
Currency text field formatter available for UIKit and SwiftUI πŸ’ΆβœοΈ
Stars: ✭ 124 (+138.46%)
Mutual labels:  swift-package-manager, swiftui
Shift
Light-weight EventKit wrapper.
Stars: ✭ 31 (-40.38%)
Mutual labels:  swift-package-manager, swiftui
SwiftCurrent
A library for managing complex workflows in Swift
Stars: ✭ 286 (+450%)
Mutual labels:  swift-package-manager, swiftui
ludigraphix.github.io
Documentation for Ludigraphix
Stars: ✭ 21 (-59.62%)
Mutual labels:  drawing, shapes
ScrollViewProxy
ScrollViewProxy for SwiftUI on iOS 13 and up
Stars: ✭ 135 (+159.62%)
Mutual labels:  swift-package-manager, swiftui
Project01-C-User-Event-Collector
πŸ’œπŸŽ· 넀이버 VIBE μ‚¬μš©μž 이벀트 μˆ˜μ§‘κΈ° πŸŽ·πŸ’œ
Stars: ✭ 21 (-59.62%)
Mutual labels:  swiftui
DrawBot
Repository for DrawBot. The Discord Art bot!
Stars: ✭ 11 (-78.85%)
Mutual labels:  drawing

SwiftUI Swift 5.1 Swift 5.1 kieranb662 followers

Commonly used shapes for SwiftUI, some I found on the web swiftui-lab and objc.io, others I made myself. I hope to create community based repo for cool animated shapes, paths, etc. If you would like to submit some of your own shapes just make a pull request and I will try to approve it ASAP. If you want to try out this package just clone the example project

Or create your own shapes using the bez editor app available for free on iOS 13.4 and greater.

  • AnyShape: A type erased Shape

  • Lines

    • Line
    • HorizontalLine
    • VerticalLine
    • AdaptiveLine
  • Triangles

    • Triangle
    • OpenTriangle
    • RightTriangle
  • Graphing

    • CartesianGrid
    • TickMarks
    • PolarGrid
    • RadialTickMarks
  • Misc

    • InfinitySymbol
    • Arrow
    • Polygon
    • Pentagon
    • PathText
    • FoldableShape

Lines

Line

Found at drawing trees. A Line defined by the from and to points.

Horizontal

A horizontal line that is the width of its container has a single parameter offset: A value between 0 and 1 defining the lines vertical offset in its container (Default: 0.5)

Vertical

A Vertical line that is the height of its container has a single parameter offset: A value between 0 and 1 defining the line's horizontal offset in its container (Default: 0.5)

Adaptive

This shape creates a line centered inside of and constrained by its bounding box. The end points of the line are the points of intersection of an infinitely long angled line and the container rectangle

Triangles

The various triangles are shown below.

Graphing

Cartesian Grid

A Rectangular grid of vertical and horizontal lines. Has two parameters xCount: The number of vertical lines yCount: The number of horizontal lines

Polar Grid

A grid made up of concentric circles and angled lines running through their center. rCount: The number of Circles thetaCount: The number of lines

TickMarks

Tick marks spaced out evenly with varying lengths dependent on the type of tick minor, semi, or major.

The shape has two parameters spacing: CGFloat and ticks: Int. The spacing is the distance between ticks while the ticks is the number of tick marks.

An examples using TickMarks are shown below

Misc

Arrow

An arrow that starts out small shaped like this |--| but as it grows larger it looks like this <---->

Pentagon

Foldable Shapes

Contributing

If you have an idea for a shape but don't know how to describe it, try out the PathEditor tool that comes packaged with bez

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].