SwiftLint
Kingfisher
Our great sponsors
SwiftLint | Kingfisher | |
---|---|---|
23 | 19 | |
18,242 | 22,730 | |
0.7% | - | |
9.5 | 8.4 | |
2 days ago | 8 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.
SwiftLint
- I need some answers on something very beginner unfriendly
-
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.
For auto-formatting, you can press CTRL-i on any selection to auto-format.
-
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
-
Awesome macOS Libraries List
SwiftLint - A tool to enforce Swift style and conventions. Language: Swift.
-
30 tips to make you a better iOS developer
If you're able to integrate SwiftLint into your project and add the Run Script step for it, you'll get this functionality and some other useful suggestions as well.
-
Swift All-Stars: unit-testing and auto-correct
For a detailed breakdown of configuration options, please see the Configuration section of the SwiftLint repo.
- What are the most underrated third party libraries for Native iOS?
Kingfisher
-
Question about Apple's review
The 3rd party library I use GRDB SwiftyUserDefaults Kingfisher SwiftDate Popovers
-
How do you guys handle image caching?
In native iOS, most people use Kingfisher, and i'd love to have something as good as that on our RN app. Perhaps just some pure JS library that you could plug on the existing image component, and that would handle the saving-to-disk and fetching of the image?
-
Cracking the iOS Interview
Kingfisher - Download and cache images
-
Almost Netflix: An iOS Netflix Clone built with Appwrite
Make sure the proper target is selected in the Add to target in the dialog as shown above, then click Add Package button. The package should successfully be added to your project. Now following the same process, this time search for the Kingfisher package using the GitHub URL as the following https://github.com/onevcat/Kingfisher.
-
Awesome macOS Libraries List
Kingfisher - A lightweight, pure-Swift library for downloading and caching images from the web. Language: Swift.
- What is your favorite SwiftUI library?
-
How can I get the image from a URL and make it UIImage?
Urlsession is the native approach, but there are also libraries that asynchronously download and show the images like SDWebImage or Kingfisher
-
The Composable Architecture tutorial
// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "DogBreedsComponent", platforms: [.iOS(.v14)], products: [ .library( name: "DogBreedsComponent", targets: ["DogBreedsComponent"] ), ], dependencies: [ // 1. .package( name: "swift-composable-architecture", url: "https://github.com/pointfreeco/swift-composable-architecture.git", .exact("0.17.0") ), // 2. .package( name: "Kingfisher", url: "https://github.com/onevcat/Kingfisher", .exact("6.2.1") ) ], targets: [ .target( name: "DogBreedsComponent", dependencies: [ .product(name: "ComposableArchitecture", package: "swift-composable-architecture"), .product(name: "Kingfisher", package: "Kingfisher") ] ), .testTarget( name: "DogBreedsComponentTests", dependencies: [ "DogBreedsComponent", .product(name: "ComposableArchitecture", package: "swift-composable-architecture") ] ), ] )
-
How do you handle fetching data from REST API and caching?
Image loading, displaying and caching is a very similar problem and it seems there are some pretty good solutions available (e.g. Kingfisher), so I'm quite surprised that I'm struggling to find a popular/reliable/stable solution for (REST) API data.
-
Library Suggestion needed for Image, Video and GIF
https://github.com/onevcat/Kingfisher is one of many.
What are some alternatives?
SDWebImage - Asynchronous image downloader with cache support as a UIImageView category
Nuke - Image loading system
SwiftFormat - A command-line tool and Xcode Extension for formatting Swift code
AlamofireImage - AlamofireImage is an image component library for Alamofire
SwiftSVG - A simple, performant, and lightweight SVG parser
Tailor - Cross-platform static analyzer and linter for Swift.
SDWebImageSwiftUI - SwiftUI Image loading and Animation framework powered by SDWebImage
AsyncImageView - [DEPRECATED]
PINRemoteImage - A thread safe, performant, feature rich image fetcher
OCLint - A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C
ImageSlideshow - Swift image slideshow with circular scrolling, timer and full screen viewer
HanekeSwift - A lightweight generic cache for iOS written in Swift with extra love for images.