Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cemolcay/PianoView

Repository files navigation

PianoView

Fully customizable piano keyboard view with @IBDesignable properties in swift.

alt tag

Requirements

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

Install

pod 'PianoView'

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

  • PianoView is just a regular UIView.
  • Either setup inside storyboard or initialize from code.
  • Draws desired key count in its view rectangle.
  • Could be draw notes on keys with or without octaves.
  • You could use octave to show pressed note in physical device.

About

Fully custumisable piano keyboard view with IBDesignable properties in swift

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /