ezefranca / Watchshaker
Licence: mit
Simple motion detector for ⌚️ (watchOS) shake gesture.
Stars: ✭ 184
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Watchshaker
concurrency-kit
🚄 Concurrency abstractions framework for Apple Platforms [Task, Atomic, Lock, Operation, etc.].
Stars: ✭ 17 (-90.76%)
Mutual labels: apple, watchos, swift-package-manager
Surmagic
🚀 The better way to deal with Binary Frameworks on iOS, Mac Catalyst, tvOS, macOS, and watchOS. Create XCFrameworks with ease.
Stars: ✭ 119 (-35.33%)
Mutual labels: watchos, swift-package-manager
Randomkit
Random data generation in Swift
Stars: ✭ 1,458 (+692.39%)
Mutual labels: watchos, swift-package-manager
Conbini
Publishers, operators, and subscribers to supplement Combine.
Stars: ✭ 109 (-40.76%)
Mutual labels: apple, watchos
Waterfallgrid
A waterfall grid layout view for SwiftUI.
Stars: ✭ 1,086 (+490.22%)
Mutual labels: watchos, swift-package-manager
Ducttape
📦 KeyPath dynamicMemberLookup based syntax sugar for Swift.
Stars: ✭ 138 (-25%)
Mutual labels: watchos, swift-package-manager
Apple Runtime Headers
Objective-C runtime headers for Apple's iOS, macOS, tvOS and watchOS frameworks
Stars: ✭ 174 (-5.43%)
Mutual labels: apple, watchos
Watchpresenter
⌚️ 🤓 Controlling your Keynote using Apple Watch
Stars: ✭ 145 (-21.2%)
Mutual labels: apple, watchos
Swifterswift
A handy collection of more than 500 native Swift extensions to boost your productivity.
Stars: ✭ 10,706 (+5718.48%)
Mutual labels: watchos, swift-package-manager
Swiftlinkpreview
It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.
Stars: ✭ 1,216 (+560.87%)
Mutual labels: watchos, swift-package-manager
Heartcontrol
❤️ Continuous heart rate measurement during workouts with watchOS 3.
Stars: ✭ 170 (-7.61%)
Mutual labels: apple, watchos
Cirrus
☁️ Simple CloudKit sync for Codable Swift models
Stars: ✭ 65 (-64.67%)
Mutual labels: apple, watchos
Coregpx
A library for parsing and creation of GPX location files. Purely Swift.
Stars: ✭ 132 (-28.26%)
Mutual labels: watchos, swift-package-manager
Clendar
Clendar - universal calendar app. Written in SwiftUI. Available on App Store
Stars: ✭ 153 (-16.85%)
Mutual labels: watchos, swift-package-manager
Swiftui Grid
🚀 SwiftUI Grid layout with custom styles
Stars: ✭ 872 (+373.91%)
Mutual labels: apple, watchos
Queuer
Queuer is a queue manager, built on top of OperationQueue and Dispatch (aka GCD).
Stars: ✭ 964 (+423.91%)
Mutual labels: watchos, swift-package-manager
Opencombine
Open source implementation of Apple's Combine framework for processing values over time.
Stars: ✭ 2,040 (+1008.7%)
Mutual labels: watchos, swift-package-manager
WatchShaker
Simple motion detector for ⌚️ (watchOS) shake gesture.
WatchShaker is a watchOS helper to get your ⌚️ shake movements
Requirements
- watchOS 6.0+
- Xcode 11.0+
Installation
Manually
- Download and drop
WatchShaker.swift
in your project to your watch target. - Congratulations!
Usage example
import WatchKit
import Foundation
class InterfaceController: WKInterfaceController {
override func awake(withContext context: Any?) {
super.awake(withContext: context)
// Configure interface objects here.
}
var shaker:WatchShaker = WatchShaker(shakeSensibility: .shakeSensibilityNormal, delay: 0.2)
override func willActivate() {
super.willActivate()
shaker.delegate = self
shaker.start()
}
override func didDeactivate() {
super.didDeactivate()
shaker.stop()
}
}
extension InterfaceController: WatchShakerDelegate
{
func watchShaker(_ watchShaker: WatchShaker, didShakeWith sensibility: ShakeSensibility) {
print("I'm shook! ⌚️⌚️⌚️")
}
func watchShaker(_ watchShaker: WatchShaker, didFailWith error: Error) {
print(error.localizedDescription)
}
}
Contribute
We would love for you to contribute to WatchShaker, check the LICENSE
file for more info.
Meta
Ezequiel França – @ezefranca and all awesome Contributors
Distributed under the MIT license. See LICENSE
for more information.
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].