SwiftLint
RxSwift
Our great sponsors
SwiftLint | RxSwift | |
---|---|---|
23 | 9 | |
18,308 | 24,156 | |
0.8% | 0.3% | |
9.5 | 7.4 | |
6 days ago | 7 days ago | |
Swift | Swift | |
MIT License | NOASSERTION |
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.
SwiftLint
- A problem when adding Swiftlint as a dependency on my won package?
- I need some answers on something very beginner unfriendly
-
Your favourite Xcode programming tools.
SwiftLint is a big one.
-
Just looking for advice on formatting code for clarity - [SwiftUI Shape]
I actually don't see anything worth changing. It looks good to me. I think the most important thing is just to maintain the constructive attitude you already have about future-you dealing with the code, because only future-you will really know where you could have done better. One personal-preference thing I carried over from working on Go code is to look for a tool like gofmt [1,2] for Swift. I've been using swift-format [3] for about 2 years and haven't been dissatisfied enough to reach for something more fully featured like SwiftLint [4]. I didn't like the idea at first of delegating most formatting control over to a tool designed with someone else's subjective idea of formatting. But my feeling afterward was that it was freeing: it was no longer (completely) my job/burden/responsibility. An "assistant" would clean up the formatting of my code every time I saved the file. That's a nightmare if you can't configure the tool as much as you need, but if you're lucky and find a configuration you can live with, it lets you focus more on naming and other conventions that aren't so easily automated (yet). [1] https://go.dev/blog/gofmt [2] https://twitter.com/bitfield/status/953395343353315329 [3] https://github.com/apple/swift-format [4] https://github.com/realm/SwiftLint
-
A Practical Approach to Automated Accessibility
iOS SwiftLint
-
Ask HN: Xcode users – how do you make it more usable?
1) Here are some tips & tricks for refactoring: https://developer.apple.com/documentation/xcode/finding-and-...
The “rename in project” or “rename in scope” functions are quite neat.
2) Check out SwiftLint: https://github.com/realm/SwiftLint
I have not used it in a while, but it comes with good defaults and is highly customizable to your own preferred Swift style.
-
How do you enforce that everyone in your team and your CI pipeline all use the same SwiftLint version?
Check this as well https://github.com/realm/SwiftLint
-
I am applying for jobs. Feedback and suggestions welcome.
Try SwiftLint. https://realm.github.io/SwiftLint/
-
Enforce Swift style and conventions with SwiftLint
if which swiftlint >/dev/null; then swiftlint else echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint" fi
-
Awesome macOS Libraries List
SwiftLint - A tool to enforce Swift style and conventions. Language: Swift.
RxSwift
- RxSwift – Reactive Extensions for Swift
- Reactive Programming in Swift
-
For UIKit apps, what is best practice for VC listening for updates from a service?
I use RxSwift/RxCocoa and The Binder Architecture. That way View Controllers always show the most recent data from the service.
- Rxswift - Reactive Programming in Swift
-
Awesome macOS Libraries List
RxSwift - Reactive Programming in Swift. Language: Swift.
-
Xcode double segue
I do this with RxSwift and my CLE library. Using those you can do something like this:
-
Anyone have a clever way of using third party packages in Swift Playgrounds?
I've tried going to RxSwift's source and copying the RxSwift folder into my playground file's Source folder but no dice, it complains about a source file not being found. I tried flattening all the files into one folder and had the same problem.
-
DispatchGroup in Swift
We have defined what async code is, and two basic issues we could have when working with it: running tasks serially and in parallel. For running tasks in parallel we saw that DispatchGroup can be a simple solution for that. I will recommend using a library for this though. What I taught you here is basic async knowledge, but in real world scenarios, this won't be this straightforward, so using a battle tested library is always an advantage when working in production. I personally recommend using Apple's Combine if you can (it is supported in iOS 13 and above) or using RxSwift otherwise Finally, I can't finish this article without mentioning async-await. With async-await, probably all of this discussion will be a thing of the past. It lets us write async code that can be written like sync code. You can see the proposal (already implemented and that will be released in the next version of swift) here, and even try it in your code following a tutorial like this one.
-
RxSwift - easy, yet not obvious, tips
I think this is the most important thing to understand with all your heart. All subjects, relays and operators might seem scary, especially with Rx-hermetic jargon. But simplifying it in your head to a simple collection will help you to understand all concepts easily. For me it was a sudden click. If you want to learn more, official docs are great source and emphasize this concept: https://github.com/ReactiveX/RxSwift/blob/main/Documentation/GettingStarted.md#observables-aka-sequences
What are some alternatives?
SwiftFormat - A command-line tool and Xcode Extension for formatting Swift code
ReSwift - Unidirectional Data Flow in Swift - Inspired by Redux
Tailor - Cross-platform static analyzer and linter for Swift.
PromiseKit - Promises for Swift & ObjC.
OCLint - A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C
ReactiveKit - A Swift Reactive Programming Kit
Swimat - An Xcode formatter plug-in to format your swift code.
Bond - A Swift binding framework
Flex - An in-app debugging and exploration tool for iOS
ReactiveSwift - Streams of values over time
FBMemoryProfiler - iOS tool that helps with profiling iOS Memory usage.
ReactiveCocoa - Cocoa framework and Obj-C dynamism bindings for ReactiveSwift.