Swiftpack.co - itsmeichigo/Fretboard as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by itsmeichigo.
itsmeichigo/Fretboard v1.0.2
Guitar & Ukulele chords with SwiftUI 🎸🎡🎢
⭐️ 11
πŸ•“ 3 years ago
iOS macOS
.package(url: "https://github.com/itsmeichigo/Fretboard.git", from: "v1.0.2")

Fretboard

Logo

Lightweight guitar & ukulele chords in SwiftUI.

Supports iOS 13 and MacOS 10.15 upwards.

Features

🎡 Chord positions

πŸŒ— Light / Dark modes

🎸 Guitar & ukulele chords with basic tunings

⏳ More to come

Installation

Swift Package Manager

Add https://github.com/itsmeichigo/Fretboard.git as the source and you're good to go.

Manual install

Copy contents from Sources folder to your project.

Usage

Get your desired instruments:

let guitar = Instrument.guitar
let ukulele = Instrument.ukulele

Each instrument comes with their own name, keys, suffixes and chords. Get a list of positions for a chord using key and suffix:

let dAug9Positions = guitar.findChordPositions(key: "D", suffix: "aug9")
let cMajorUkuPositions = Instrument.ukulele.findChordPositions(key: "C", suffix: "major")

Display any chord by sending it to FretboardView:

FretboardView(position: dAug9Position)
    .frame(width: 100, height: 200)

Demo app

screenshot

GitHub

link
Stars: 11
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Ukulele chords 🌼
3 years ago

πŸ”₯ Fretboard now supports displaying more than just guitar chords πŸ’› More than 2000 ukulele chords were added as well 🐝 Improved UI for FretboardView to look slightly better

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics