Skip to content

A lightweight, reusable Swift SDK for basic mathematical operations. Currently supports addition of two integers with a clean and testable API.

License

Notifications You must be signed in to change notification settings

jayantv-coder/MathOperationsSDK

Repository files navigation

MathOperationsSDK

A lightweight, reusable Swift SDK for basic mathematical operations. Currently supports addition of two integers with a clean and testable API.


🚀 Features

  • ✅ Add two integer numbers
  • ✅ Clean and minimal API
  • ✅ Supports Swift Package Manager and manual integration
  • ✅ Unit tested using XCTest
  • ✅ Compatible with iOS 12+

📦 Installation

🍫 CocoaPods(Recommended)

To integrate MathOperationsSDK using CocoaPods, add the following line to your Podfile:

pod 'MathOperationsSDK'

Swift Package Manager

Add the following to your Package.swift:

.package(url: "https://github.com/jayantv-coder/MathOperationsSDK.git", from: "1.0.3")

🚀 Usage

Import the SDK

import MathOperationsSDK

Initialize and Perform Operations

let math = Addition()
let sum = math.add(10, 5)             // Output: 15

let sub = Subtraction()
let result = sub.subtract(20,10)      // Output: 10

About

A lightweight, reusable Swift SDK for basic mathematical operations. Currently supports addition of two integers with a clean and testable API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published