Pentagram 1.1.0

Pentagram 1.1.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布时间最后发布2016年12月
SwiftSwift 版本3.0
SPM支持 SPM

LucasCoelho 维护。



Pentagram 1.1.0

  • Lucas Coelho

Pentagram

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install

安装

Pentagram 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中:

pod 'Pentagram'

使用说明

    override func viewDidLoad() {
        super.viewDidLoad()
        let pentagram = PentagramViewController.getPentagram(5, spaceBetweenLines: 24, topPosition: 200)

        addChildViewController(pentagram)
        view.addSubview(pentagram.view)
        pentagram.didMoveToParentViewController(self)

        pentagram.key = .F

        let note = pentagram.drawNoteForName(.Do3)
    }

作者

Lucas Coelho,[email protected]

许可证

Pentagram 在 MIT 许可下提供。有关更多信息,请参阅 LICENSE 文件。