arthurtop / DanmakuKit

DanmakuKit is a high performance library that provides the basic functions of danmaku.

Home Page:https://github.com/qyz777/DanmakuKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DanmakuKit

Version License Platform

Introduction

DanmakuKit is a high performance library that provides the basic functions of danmaku. It provides a set of processes that allow you to generate the danmaku cell via cellModel, and each danmaku can be drawn either synchronously or asynchronously.

As shown in the GIF below, DanmakuKit offers three types of danmaku launch: floating, top and bottom.

Demo_0

Demo_1

Supported features

✅ Speed adjustment

✅ Track height adjustment

✅ Display area adjustment

✅ Click callback

✅ Support to pause or play a single danmaku

TODO

If you have any requirements that you want DanmakuKit to provide, you can raise issue.

  • Support for setting progress property to render the danmaku immediately on the view.
  • Provides property to specify whether danmaku can overlap.

Example

For detailed usage, see the Example project, which provides a functional demonstration and an example of using it with a player.

Requirements

swift 5.0+

iOS 9.0+

Installation

DanmakuKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'DanmakuKit', '~> 0.2.0'

Author

qyz777, qyizhong1998@gmail.com

License

DanmakuKit is available under the MIT license. See the LICENSE file for more info.

About

DanmakuKit is a high performance library that provides the basic functions of danmaku.

https://github.com/qyz777/DanmakuKit

License:MIT License


Languages

Language:Swift 97.5%Language:Ruby 2.5%