NetworkKit

1.0.8

Powerful network layer seamlessly integrating Combine Framework, Async/Await, and Closures.
sabapathy7/NetworkKit

What's New

1.0.8

2024-08-26T03:54:58Z

๐Ÿš€ Update & Compatibility Notice

  • InternalImportsByDefault Update:
    Updated InternalImportsByDefault to enableExperimentalFeature in the Swift Package Manager configuration. This change aligns the package with the latest Swift 6 experimental features.
  • Removed Public Import for Combine:
    Removed the public modifier from the Combine import, reflecting the updated internal usage of the library.

โš ๏ธ Compatibility Notice

This release is fully compatible with Swift 6, ensuring that all new concurrency and package management features work as intended. However, it is important to note that this version is not compatible with Swift versions 5.8 to 5.11. If you need support for those versions, please use an earlier version of the package.

๐Ÿ“ฆ How to Update

To update to this new version, modify your Package.swift as follows:

   .package(url: "https://github.com/yourusername/NetworkKit.git", from: "1.0.7")

๐Ÿงช Swift 6 Tests on SwiftPackageIndex

This release is now available on SwiftPackageIndex and has been tested for compatibility with Swift 6. We recommend updating your projects to this version to take advantage of the new concurrency features and improvements.

Full Changelog: 1.0.7...1.0.8

NetworkKit

Elevate your iOS appโ€™s connectivity with NetworkKit โ€“ a powerful, modular network layer designed to seamlessly integrate the latest in Swiftโ€™s networking capabilities, including Combine Framework, Async/Await, and Closures.

๐Ÿ“– Full Tutorial

Dive deep into NetworkKit with the full tutorial on Medium..

๐Ÿš€ Example Usage

Check out how to use NetworkKit in real-world applications:

โ€ข iOS Network Example

โ€ข SOLID Principles Example

โ€ข Force Update App Example

โœจ Features

โ€ข Combine Framework Integration

Leverage the power of Combine to streamline asynchronous operations and handle complex data flows effortlessly.

โ€ข Async/Await Support

Embrace modern Swift programming with async/await, simplifying asynchronous code and making your networking logic cleaner and more readable.

โ€ข Closures for Flexibility

Customize your networking calls with closures, offering a flexible and modular approach to handle responses, errors, and more.

๐Ÿ“š Code Examples

public protocol Networkable {
   func sendRequest<T: Decodable>(endpoint: EndPoint) async throws -> T
   func sendRequest<T: Decodable>(endpoint: EndPoint, resultHandler: @escaping (Result<T, NetworkError>) -> Void)
   func sendRequest<T: Decodable>(endpoint: EndPoint, type: T.Type) -> AnyPublisher<T, NetworkError>
}

๐Ÿ› ๏ธ Installation

Add NetworkKit to your project using Swift Package Manager: https://github.com/sabapathyk7/NetworkKit.git

๐Ÿค Contributions

Have ideas or improvements? Feel free to submit issues or pull requests to help enhance NetworkKit.

๐Ÿ”— Connect with Me

Stay updated on the latest features and releases by following me on LinkedIn.

Description

  • Swift Tools 5.8.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Apr 27 2025 13:27:30 GMT-0900 (Hawaii-Aleutian Daylight Time)