Latest 0.0.3
Homepage https://github.com/cemolcay/PianoView
License MIT
Platforms ios 8.0, osx 10.9, tvos 9.0, requires ARC
Dependencies MusicTheorySwift
Authors

Fully custumisable 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 initilize 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.

Latest podspec

{
    "name": "PianoView",
    "version": "0.0.3",
    "swift_version": "4.2",
    "summary": "Fully custumisable piano keyboard view with `@IBDesignable` properties in swift.",
    "description": "PianoViewn===nnFully custumisable piano keyboard view with `@IBDesignable` properties in swift.nn![alt tag](https://github.com/cemolcay/PianoView/blob/master/demo.png?raw=true)nnRequirementsn----nn* Swift 4+n* iOS 8.0+n* tvOS 9.0+n* macOS 10.9+nnInstalln----nn```npod 'PianoView'n```nnYou need to add this post installer script to your podfile in order to use @IBDesignable libraries with pods.nMore information on this [cocoapods issue](https://github.com/CocoaPods/CocoaPods/issues/5334)nn```npost_install do |installer|ninstaller.pods_project.build_configurations.each do |config|nconfig.build_settings['LD_RUNPATH_SEARCH_PATHS'] = ['$(FRAMEWORK_SEARCH_PATHS)']nendnendn```nnUsagen----nn* PianoView is just a regular UIView.n* Either setup inside storyboard or initilize from code.n* Draws desired key count in its view rectangle.n* Could be draw notes on keys with or without octaves.n* You could use octave to show pressed note in physical device.",
    "homepage": "https://github.com/cemolcay/PianoView",
    "license": "MIT",
    "authors": {
        "cemolcay": "[email protected]"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/cemolcay/PianoView.git",
        "tag": "0.0.3"
    },
    "source_files": "Source/PianoView.swift",
    "requires_arc": true,
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3"
    },
    "dependencies": {
        "MusicTheorySwift": []
    }
}

Pin It on Pinterest

Share This