Giter Site home page Giter Site logo

okklineswift's Introduction

OKKLineSwift

😄 OKKLineSwift is written in Swift3 to draw the stock K-line library

Screenshot

iOS Screenshot [Support drag gestures, long press gestures (see details), knead gestures (zoom in)]

OKKLineSwift

macOS Screenshot [Support drag events, crosshairs follow, mouse scrolling events (zoom in)]

OKKLineSwift

Support

Swift 3.0

iOS 8+

macOS 10.10+

Installation

Manually

  1. Download the full file.
  2. 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! 👏

okklineswift's People

Contributors

herbsun avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.