watchOS-2-Sampler
R.swift
Our great sponsors
watchOS-2-Sampler | R.swift | |
---|---|---|
1 | 5 | |
1,074 | 9,396 | |
- | - | |
0.0 | 6.2 | |
over 2 years ago | 23 days ago | |
Swift | Swift | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
watchOS-2-Sampler
-
Apple Gave Uber Access to a Secret Feature That Can Record iPhone Screens (2017)
More info on WatchKit, per [1]
> Can I use custom views in the Apple Watch? Can I customize the interface elements beyond their public API?
> No. You canβt use custom views. WatchKit only supports certain native interface elements. None of the interface elements can be subclassed or customized beyond their public API. The available interface elements are WKInterfaceLabel, WKInterfaceButton, WKInterfaceImage, WKInterfaceGroup, WKInterfaceSeparator, WKInterfaceTable, WKInterfaceSwitch, WKInterfaceMap, WKInterfaceSlider and WKInterfaceTimer.
In the original watchOS release, you can't even draw shapes, only display images. So to make a custom map you'd have to render the image yourself for display as a WKInterfaceImage.
With watchOS 2 you were able to draw with Core Graphics [2].
[1] https://www.raywenderlich.com/1950-watchkit-faq
[2] https://github.com/shu223/watchOS-2-Sampler#draw-paths-updat...
R.swift
- SPM and localization
-
Simple, but accurate drawing for iOS
I was having trouble getting R.swift to work with with SPM, potentially it's not supported yet? https://github.com/mac-cain13/R.swift/issues/735
-
Custom styling similar to Android for iOS
All resources in Android are referenced in a static class called R, so accessing to individual resources is pretty easy using R.[typeOfResource].resourceName. For iOS we use a library that does something similar, is called R.swift With that we can access resources in iOS using an 'Android like' sintax
-
Did you also know? In Xcode you can use the refactoring tool to wrap a literal string into a call to NSLocalizedString! Even better, you can assign a keyboard shortcut to make it even more efficient π€
Same was posted on the /r/iOSProgramming post for this, but I'm definitely not going back to using the raw NSLocalizedString call or extensions after I started using R.swift. Type safety and auto complete for all your assets is a real win in my book.
Or R.swift Clean and convenient solution.
What are some alternatives?
EFQRCode - A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.
SwiftGen - The Swift code generator for your assets, storyboards, Localizable.strings, β¦ β Get rid of all String-based APIs!
open-source-ios-apps - :iphone: Collaborative List of Open-Source iOS Apps
XcodeGen - A Swift command line tool for generating your Xcode project
SmartlookConsentSDK for iOS - Configurable consent SDK for iOS
Shark - Swift CLI for strong-typing images, colors, storyboards, fonts and localizations
SwifterSwift - A handy collection of more than 500 native Swift extensions to boost your productivity.
infer - A static analyzer for Java, C, C++, and Objective-C
Xtrace - Trace Objective-C method calls by class or instance
Dollar - A functional tool-belt for Swift Language similar to Lo-Dash or Underscore.js in Javascript
Awesome-Design-Tools - The best design tools and plugins for everything π