{"id":15037335,"url":"https://github.com/herbsun/okklineswift","last_synced_at":"2025-04-06T22:10:05.930Z","repository":{"id":94436333,"uuid":"74442887","full_name":"herbsun/OKKLineSwift","owner":"herbsun","description":"Draw the K-Line by Swift, support iOS \u0026 macOS","archived":false,"fork":false,"pushed_at":"2018-01-25T04:54:12.000Z","size":6907,"stargazers_count":419,"open_issues_count":7,"forks_count":75,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-06T22:09:56.280Z","etag":null,"topics":["kline","macos","stock","swift","swift3"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/herbsun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-22T06:43:52.000Z","updated_at":"2024-12-10T05:58:52.000Z","dependencies_parsed_at":"2023-03-02T06:00:23.164Z","dependency_job_id":null,"html_url":"https://github.com/herbsun/OKKLineSwift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herbsun%2FOKKLineSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herbsun%2FOKKLineSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herbsun%2FOKKLineSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herbsun%2FOKKLineSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/herbsun","download_url":"https://codeload.github.com/herbsun/OKKLineSwift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kline","macos","stock","swift","swift3"],"created_at":"2024-09-24T20:34:20.788Z","updated_at":"2025-04-06T22:10:05.904Z","avatar_url":"https://github.com/herbsun.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cH1 align=\"center\"\u003eOKKLineSwift\u003c/H1\u003e\n\n### [中文介绍](README_CN.md)\n\n:smile: **OKKLineSwift** is written in Swift3 to draw the stock K-line library\n\n## Screenshot\n\niOS Screenshot\n[Support drag gestures, long press gestures (see details), knead gestures (zoom in)]\n\n![OKKLineSwift](https://github.com/Herb-Sun/OKKLineSwift/blob/master/Screenshot/OKKLineSwift-iOS.gif) \n\nmacOS Screenshot\n[Support drag events, crosshairs follow, mouse scrolling events (zoom in)]\n\n![OKKLineSwift](https://github.com/Herb-Sun/OKKLineSwift/blob/master/Screenshot/OKKLineSwift-macOS.gif) \n\nSupport\n===\nSwift 3.0 \n\niOS 8+\n\nmacOS 10.10+\n\nInstallation\n===\n#### Manually\n\n1. Download the full file.\n2. Drag the OKKLineSwift folder to your project.\n\n## Source directory\n\n|Directory | Description|\n| ---------- | -----------|\n| Configuration | OKConfiguration.swift - This is a global control class that controls the global theme (e.g. color, font size, etc.) |\n| Views | OKKLineView - This class is the parent view of all views \u003cbr/\u003e OKKLineDrawView.swift - This class is a parent view of all K-line views that handle gestures and data sources \u003cbr/\u003e OKValueView.swift - Responsible for drawing prices \u003cbr/\u003e 1、MainView： \u003cbr/\u003e OKKLineMainView.swift - Responsible for drawing the main graph \u003cbr/\u003e2、VolumeView： \u003cbr/\u003e OKKLineVolumeView.swift - Responsible for drawing the volume view \u003cbr/\u003e3、AccessoryView： \u003cbr/\u003e OKKLineAccessoryView.swift - Responsible for drawing the index view\u003cbr/\u003e4、SegmentView： \u003cbr/\u003e OKSegmentView.swift - Responsible for displaying timeline or indicator type\u003cbr/\u003e|\n| Models | Data model directory, mainly K-line data and a variety of indicators model |\n| Tools | Tool class directory,for example: \u003cbr/\u003eOKLineBrush.swift - Responsible for drawing lines \u003cbr/\u003eOKMALineBrush.swift - Responsible for drawing the average class|\n\n## TODO\n- [x] Support macOS system                                                                                                                                                                                                                                                 \n- [ ] Support for more metric types\n\n## Licenses\nAll the OK at the beginning of the project source code to comply with MIT license. \nCopyright (c) 2016 Herb. All rights reserved.\n\n## Contributions\nWelcome to contribute to your ideas and code! You can pull requests and issues here! :clap:\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherbsun%2Fokklineswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fherbsun%2Fokklineswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherbsun%2Fokklineswift/lists"}