Fully customisable IBDesignable circle of fifths implementation in swift.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CircleOfFifths.xcodeproj Update Swift 4.2 Sep 13, 2018
CircleOfFifths.xcworkspace Update Swift 4.2 Sep 13, 2018
Example
Source Update Swift 4.2 Sep 13, 2018
.gitignore add gitignore Jan 19, 2017
CircleOfFifths.podspec 0.0.4 Sep 13, 2018
CircleOfFifths.textClipping Optimized layer Apr 18, 2017
LICENSE Initial commit Jan 19, 2017
Podfile Make 0.0.1 shared library Feb 9, 2017
Podfile.lock Update Swift 4.2 Sep 13, 2018
README.md Update README.md Feb 9, 2017
demo.png Add intervals of chords Jan 23, 2017

README.md

CircleOfFifths

Fully customisable IBDesignable circle of fifths implementation.

alt tag

Requirements

  • Swift 3+
  • iOS 8.0+
  • tvOS 9.0+
  • macOS 10.11+

Install

pod 'CircleOfFifths'

You need to add this post installer script to your podfile in order to use @IBDesignable libraries with pods.
More information on this cocoapods issue

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = ['$(FRAMEWORK_SEARCH_PATHS)']
  end
end

Usage

  • CircleOfFifths just a regular UIView subclass with custom CALayer drawing with customisable @IBInspectable properties.
  • It can render any Scale type in any key of this music theory library.
  • Just set the scale parameter in order to change scale and/or key of circle.
  • Also draws another customisable circle below to show related major, minor and diminished chords of the scale in circle.

Credits