Swift Package Index


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


  • The latest stable release is 1.0.5. Released 9 months ago.
  • The last commit to master was 9 months ago.

Swift Version Compatibility

  • 1.0.5 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 1.0.5 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

AFNetworks

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.
        .library(
            name: "AFNetworks",
            targets: ["AFNetworks"]),
    ],
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        // .package(url: https://github.com/afdetails/AFNetwork.git, 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.
        .target(
            name: "AFNetworks",
            dependencies: []),
        .testTarget(
            name: "AFNetworksTests",
            dependencies: ["AFNetworks"]),
    ]
)

And then import wherever needed: import AFNetwork