preface
OKKLineSwift is my drawing stock K line library written with Swift3
Support
Swift 3.0 & iOS 8+
Manually
Because most of the work of drawing k-lines is done in the UI layer, which is the most volatile, it is not currently intended to be provided in Cocoapods
- Download the full file.
- Drag the Source folder to your project.
directory | instructions |
---|---|
Configuration | OKConfiguration. Swift – This is a global control class that controls global topics (e.g Color, font size, etc |
Views | OKKLineView – This class is the parent view of all views Okklinedrawview. swift – This class is the parent of all k-line views that handle gestures and data sources Okvalueview.swift – This class is responsible for drawing the price 1, MainView: Okklinemainview.swift – This class is responsible for drawing the main diagram 2, VolumeView: Okklinevolumeview. swift – This class is responsible for drawing the volume view 3, AccessoryView: OKKLineAccessoryView. Swift – such is responsible for the index view drawing 4, SegmentView: Oksegmentview. swift – This class is responsible for displaying the timeline or indicator type |
Models | Data model catalog, mainly K line data and various index models |
Tools | Swift – the class responsible for drawing lines, and OKMALineBrush. Swift – the class responsible for drawing averages |
TODO
- Supports macOS
- More indicator types are supported
All source code starting with OK- in this project complies with the MIT license.
Contributions
Welcome to contribute your ideas and code! You can pull requests and issues here!