https://github.com/cemolcay/pianoview
Fully custumisable piano keyboard view with IBDesignable properties in swift
https://github.com/cemolcay/pianoview
ibdesignable ios keyboard music osx piano swift
Last synced: 6 months ago
JSON representation
Fully custumisable piano keyboard view with IBDesignable properties in swift
- Host: GitHub
- URL: https://github.com/cemolcay/pianoview
- Owner: cemolcay
- License: mit
- Created: 2017-01-19T21:04:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-28T07:52:37.000Z (almost 6 years ago)
- Last Synced: 2025-04-06T10:53:24.291Z (6 months ago)
- Topics: ibdesignable, ios, keyboard, music, osx, piano, swift
- Language: Swift
- Size: 269 KB
- Stars: 35
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PianoView
===Fully customizable piano keyboard view with `@IBDesignable` properties in swift.

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](https://github.com/CocoaPods/CocoaPods/issues/5334)```
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.