All Projects β†’ tichise β†’ OMJoystick

tichise / OMJoystick

Licence: MIT license
This is the JoyStick UI library for SwiftUI.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to OMJoystick

BottomSheet
A BottomSheet component made with UIKit. Completely written in Swift 🧑
Stars: ✭ 62 (+313.33%)
Mutual labels:  spm, swiftpackagemanager
NetworkAgent
This package is meant to make http request of an easy way inspiren in the architecture of Moya package. This package is 100% free of dependencies and works with Combine api + Codable
Stars: ✭ 16 (+6.67%)
Mutual labels:  spm, swiftui
column-text-view-ui
πŸ“„ Column Text View is an adaptive UI component that renders text in columns, horizontally [iOS 12, UIKit, TextKit, SwiftUI].
Stars: ✭ 11 (-26.67%)
Mutual labels:  spm, swiftui
Taskey
πŸš€ It Makes easy to track your task πŸ”₯ Beautiful & Animated UIπŸ‘¨πŸ»β€πŸ’» . Contributions are always welcome πŸ€—
Stars: ✭ 34 (+126.67%)
Mutual labels:  swiftui, swiftpackage
TIFeedParser
RSS Parser written in Swift
Stars: ✭ 18 (+20%)
Mutual labels:  spm, swiftpackage
SwiftUIKit
πŸ“± UIKit code that is fun to write
Stars: ✭ 71 (+373.33%)
Mutual labels:  spm, swiftui
SwiftUIKit
A collection of missing SwiftUI components
Stars: ✭ 198 (+1220%)
Mutual labels:  spm, swiftui
TagField
🏷 Simple Tag Field for SwiftUI 🏷
Stars: ✭ 19 (+26.67%)
Mutual labels:  spm, swiftui
CircularProgressView
Circular and animated progress bar for iOS
Stars: ✭ 25 (+66.67%)
Mutual labels:  spm, swiftpackagemanager
SwiftDown
πŸ“¦ A themable markdown editor component for your SwiftUI apps.
Stars: ✭ 203 (+1253.33%)
Mutual labels:  spm, swiftui
AsyncLocationKit
πŸ“async/await CoreLocation
Stars: ✭ 18 (+20%)
Mutual labels:  swiftpackage, swiftpackagemanager
stick
Platform-agnostic asynchronous gamepad, joystick and flightstick library for the Rust Programming Language
Stars: ✭ 41 (+173.33%)
Mutual labels:  joystick, joystick-library
BetterMappable
Better Mappable through Property Wrappers using ObjectMapper
Stars: ✭ 26 (+73.33%)
Mutual labels:  swiftpackage, swiftpackagemanager
Columbus
A feature-rich country picker for iOS, tvOS and watchOS.
Stars: ✭ 23 (+53.33%)
Mutual labels:  spm, swiftui
joypad.js
JavaScript library that lets you connect and use various gaming controllers with browsers that support the Gamepad API. Less than 5KB in size with zero dependencies and support for button press, axis movement events and vibration play effect.
Stars: ✭ 97 (+546.67%)
Mutual labels:  joystick, joystick-library
SwiftBuilder
SwiftBuilder is a fast way to assign new value to the property of the object.
Stars: ✭ 26 (+73.33%)
Mutual labels:  swiftpackage, swiftpackagemanager
SwiftTheming
A powerful lightweight theme 🎨 manager for SwiftUI
Stars: ✭ 38 (+153.33%)
Mutual labels:  swiftui, swiftpackagemanager
QuoteKit
A framework to use the free APIs provided by https://quotable.io
Stars: ✭ 17 (+13.33%)
Mutual labels:  swiftui
VCore
VCore is a Swift collection containing objects, functions, and extensions that I use for my projects
Stars: ✭ 32 (+113.33%)
Mutual labels:  swiftui
MyDemos
πŸ’Ύ Demo ι›†εˆ . 黑发不ηŸ₯ε‹€ε­¦ζ—©οΌŒη™½ι¦–ζ–Ήζ‚”θ―»δΉ¦θΏŸ.
Stars: ✭ 64 (+326.67%)
Mutual labels:  joystick

OMJoystick CocoaPods Version Platform License

This is the JoyStick UI library for SwiftUI.

Image

image

Examples

Swift

Simple

import SwiftUI
import OMJoystick

struct ContentView: View {

    var body: some View {
        OMJoystick(colorSetting: ColorSetting()) { (joyStickState, stickPosition) in
        }
    }
}

Customize

import SwiftUI
import OMJoystick
import SFSafeSymbols

struct ContentView: View {        
    let iconSetting = IconSetting(
        leftIcon: Image(systemSymbol: .arrowLeft),
        rightIcon: Image(systemSymbol: .arrowRight),
        upIcon: Image(systemSymbol:.arrowUp),
        downIcon: Image(systemSymbol: .arrowDown)
    )
    
    let colorSetting = ColorSetting(subRingColor: .red, bigRingNormalBackgroundColor: .green, bigRingDarkBackgroundColor: .blue, bigRingStrokeColor: .yellow)
    
    var body: some View {
        GeometryReader { geometry in
            VStack(alignment: .center, spacing: 5) {
                OMJoystick(isDebug: true, iconSetting: self.iconSetting,  colorSetting: ColorSetting(), smallRingRadius: 70, bigRingRadius: 120
                ) { (joyStickState, stickPosition)  in
                    
                }.frame(width: 315, height: 315)
            }
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

Installation (CocoaPods)

pod 'OMJoystick'

CocoaPods URL

OMJoystick on CocoaPods.org

License

OMJoystick is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].