Skip to content
Fully custumisable piano keyboard view with IBDesignable properties in swift
Swift Ruby Objective-C
Branch: master
Clone or download

Latest commit

Latest commit 906ad90 Nov 28, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example Update Swift 4.2 Sep 13, 2018
PianoView.xcodeproj Update Swift 4.2 Sep 13, 2018
PianoView.xcworkspace 0.0.2 Jun 26, 2018
Source Update Swift 4.2 Sep 13, 2018
.gitignore Initial commit Jan 19, 2017
LICENSE Initial commit Jan 19, 2017
PianoView.podspec 0.0.3 Sep 13, 2018
Podfile Make 0.0.1 shared library Feb 9, 2017
Podfile.lock Update Swift 4.2 Sep 13, 2018
README.md Syntax issues Nov 27, 2019
demo.png Initial commit Jan 19, 2017

README.md

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.
You can’t perform that action at this time.