Make Rest Apis calls easy while using MVVM patterns and DI architecture


Swift Package Manager

import PackageDescription

let package = Package(
    name: "AFNetworks",
    products: [
        // Products define the executables and libraries produced by a package, and make them visible to other packages.
            name: "AFNetworks",
            targets: ["AFNetworks"]),
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        // .package(url:, from: "1.0.0"),
    targets: [
        // Targets are the basic building blocks of a package. A target can define a module or a test suite.
        // Targets can depend on other targets in this package, and on products in packages which this package depends on.
            name: "AFNetworks",
            dependencies: []),
            name: "AFNetworksTests",
            dependencies: ["AFNetworks"]),

And then import wherever needed: import AFNetwork


  • Swift Tools 5.1.0
View More Packages from this Author


  • None
Last updated: Sun Sep 24 2023 14:45:46 GMT-0900 (Hawaii-Aleutian Daylight Time)