{"id":18247971,"url":"https://github.com/tichise/omjoystick","last_synced_at":"2025-04-04T15:31:55.150Z","repository":{"id":54402445,"uuid":"293214300","full_name":"tichise/OMJoystick","owner":"tichise","description":"This is the JoyStick UI library for SwiftUI.","archived":false,"fork":false,"pushed_at":"2024-03-05T05:23:07.000Z","size":109,"stargazers_count":18,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T08:29:34.719Z","etag":null,"topics":["cocoapods","joystick","joystick-library","spm","swift","swiftpackage","swiftpackagemanager","swiftui","ui"],"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/tichise.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":"2020-09-06T06:03:53.000Z","updated_at":"2024-04-21T04:08:01.000Z","dependencies_parsed_at":"2024-03-05T06:32:00.522Z","dependency_job_id":"6b860c69-b1f5-4d60-9e58-34f6dfacce43","html_url":"https://github.com/tichise/OMJoystick","commit_stats":{"total_commits":64,"total_committers":2,"mean_commits":32.0,"dds":0.015625,"last_synced_commit":"6d60721ae3ad4a90151871c3306ea47d3779cfc1"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichise%2FOMJoystick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichise%2FOMJoystick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichise%2FOMJoystick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichise%2FOMJoystick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tichise","download_url":"https://codeload.github.com/tichise/OMJoystick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247202935,"owners_count":20900871,"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":["cocoapods","joystick","joystick-library","spm","swift","swiftpackage","swiftpackagemanager","swiftui","ui"],"created_at":"2024-11-05T09:35:03.361Z","updated_at":"2025-04-04T15:31:50.135Z","avatar_url":"https://github.com/tichise.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"### OMJoystick ![CocoaPods Version](https://img.shields.io/cocoapods/v/OMJoystick.svg?style=flat) ![Platform](https://img.shields.io/cocoapods/p/OMJoystick.svg?style=flat) ![License](https://img.shields.io/cocoapods/l/OMJoystick.svg?style=flat)\n\nThis is the JoyStick UI library for SwiftUI.\n\n### Image\n![image](https://user-images.githubusercontent.com/43707/92986397-65c81e00-f4f5-11ea-95fe-f308df819b8e.png)\n\n### Examples\n\n#### Swift\n\nSimple\n```html\nimport SwiftUI\nimport OMJoystick\n\nstruct ContentView: View {\n\n    var body: some View {\n        OMJoystick(colorSetting: ColorSetting()) { (joyStickState, stickPosition) in\n        }\n    }\n}\n```\n\nCustomize\n\n```html\nimport SwiftUI\nimport OMJoystick\nimport SFSafeSymbols\n\nstruct ContentView: View {        \n    let iconSetting = IconSetting(\n        leftIcon: Image(systemSymbol: .arrowLeft),\n        rightIcon: Image(systemSymbol: .arrowRight),\n        upIcon: Image(systemSymbol:.arrowUp),\n        downIcon: Image(systemSymbol: .arrowDown)\n    )\n    \n    let colorSetting = ColorSetting(subRingColor: .red, bigRingNormalBackgroundColor: .green, bigRingDarkBackgroundColor: .blue, bigRingStrokeColor: .yellow)\n    \n    var body: some View {\n        GeometryReader { geometry in\n            VStack(alignment: .center, spacing: 5) {\n                OMJoystick(isDebug: true, iconSetting: self.iconSetting,  colorSetting: ColorSetting(), smallRingRadius: 70, bigRingRadius: 120\n                ) { (joyStickState, stickPosition)  in\n                    \n                }.frame(width: 315, height: 315)\n            }\n        }\n    }\n}\n\nstruct ContentView_Previews: PreviewProvider {\n    static var previews: some View {\n        ContentView()\n    }\n}\n```\n\n\n### Installation (CocoaPods)\n`pod 'OMJoystick'`\n\n### CocoaPods URL\n[OMJoystick on CocoaPods.org](https://cocoapods.org/pods/OMJoystick)\n\n### License\nOMJoystick is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftichise%2Fomjoystick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftichise%2Fomjoystick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftichise%2Fomjoystick/lists"}