OKKLineSwift
中文介绍
Screenshot
iOS Screenshot [Support drag gestures, long press gestures (see details), knead gestures (zoom in)]
macOS Screenshot [Support drag events, crosshairs follow, mouse scrolling events (zoom in)]
Support
Swift 3.0
iOS 8+
macOS 10.10+
Installation
Manually
- Download the full file.
- Drag the OKKLineSwift folder to your project.
Source directory
| Directory | Description |
|---|---|
| Configuration | OKConfiguration.swift - This is a global control class that controls the global theme (e.g. color, font size, etc.) |
| Views | OKKLineView - This class is the parent view of all views OKKLineDrawView.swift - This class is a parent view of all K-line views that handle gestures and data sources OKValueView.swift - Responsible for drawing prices 1、MainView: OKKLineMainView.swift - Responsible for drawing the main graph 2、VolumeView: OKKLineVolumeView.swift - Responsible for drawing the volume view 3、AccessoryView: OKKLineAccessoryView.swift - Responsible for drawing the index view 4、SegmentView: OKSegmentView.swift - Responsible for displaying timeline or indicator type |
| Models | Data model directory, mainly K-line data and a variety of indicators model |
| Tools | Tool class directory,for example: OKLineBrush.swift - Responsible for drawing lines OKMALineBrush.swift - Responsible for drawing the average class |
TODO
- Support macOS system
- Support for more metric types
Licenses
All the OK at the beginning of the project source code to comply with MIT license. Copyright (c) 2016 Herb. All rights reserved.
Contributions
Welcome to contribute to your ideas and code! You can pull requests and issues here!

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


