TanquePatterns 2 is a macOS-first SwiftUI construction studio for Islamic geometric pattern drafting. The app is built around reusable geometric logic rather than canned templates, so visible construction steps drive the final ornament.
- Reusable geometric kernel with primitives, intersections, transforms, subdivision, snapping, and constraint checks
- Step-based construction engine with replayable operations
- Layered renderer for guides, emphasized geometry, and final pattern lines
- Interactive pan and zoom viewport
- Two complete procedural constructions: an eightfold square-on-square star and a sixfold hexagram
- PNG and SVG export
- Unit tests for geometry and construction logic
Sources/GeometryKernel: core geometric primitives and operationsSources/ConstructionKit: construction engine, step records, pattern librarySources/RenderingKit: SwiftUI rendering layer and themeSources/RenderingKit/SVGExporter.swift: vector export fromConstructionResultSources/TanquePatterns2: macOS application shell, view model, controls, exportTests: kernel and construction coveragedocs/ARCHITECTURE.md: module responsibilities and extension points
Open Package.swift in Xcode to work with the app as a Swift package, or use:
swift test
swift build
swift build --build-system xcode- SVG export
- richer construction families and tilings
- animated playback timing controls
- annotation mode
- iPad and Pencil workflows
- parametric editing tools