🎯
Focusing
Pinned Loading
-
Testability with protocol witness. H...
Testability with protocol witness. Have you ever reached to point where protocol based mock gets complex, and doesn't provide variance and flexibility, well here is a small idea how protocol witness will solve the problem 12//MARK:- ------------------------------------- Main Target ---------------------------------------------------------
3struct DeviceInfo {
4var isTablet: Bool { UIDevice.current.userInterfaceIdiom == .pad }
5var vendorIdentifler: () -> String? = { UIDevice.current.identifierForVendor?.uuidString }
-
DesignSystem
DesignSystem PublicSolution for design inconsistencies specially for huge team, maintaining standards and restricting any modification for developers so that every components stands with single source of truth.
Swift
-
MinimalNetworking
MinimalNetworking PublicSimple and Minimal Networking with Swift and Combine
Swift
-
Testable UserDefault's property wrapper
Testable UserDefault's property wrapper 1@propertyWrapper struct UserDefaultsStore<T:Codable> {
2let key: String
3let storage: UserDefaultsStorage
4private let subject: PassthroughSubject<[T], Never> = .init()
5 -
TestableSubscriber, ever wondered ho...
TestableSubscriber, ever wondered how to test the publisher? This is a simple solution to test the emitted values by any publisher in Test target without calling the actual subscriber inside business logic.The provided XCTest case demonstrates how to use this TestableSubscriber for testing by subscribing to a publisher and asserting values and completion events. 1final class TestableSubscriber<Input, Failure: Error>: Subscriber {
2typealias Input = Input
3typealias Failure = Failure
45private var subscription: Subscription?
-
MovieSearch
MovieSearch PublicMoveSearch, discovering and exploring movies! With MoveSearch, you can easily search for popular movies. This app fetches the popular movie data from TMDB sources, providing you with accurate and …
Swift
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.