A lightweight, reusable Swift SDK for basic mathematical operations. Currently supports addition of two integers with a clean and testable API.
- ✅ Add two integer numbers
- ✅ Clean and minimal API
- ✅ Supports Swift Package Manager and manual integration
- ✅ Unit tested using XCTest
- ✅ Compatible with iOS 12+
To integrate MathOperationsSDK using CocoaPods, add the following line to your Podfile
:
pod 'MathOperationsSDK'
Add the following to your Package.swift
:
.package(url: "https://github.com/jayantv-coder/MathOperationsSDK.git", from: "1.0.3")
import MathOperationsSDK
let math = Addition()
let sum = math.add(10, 5) // Output: 15
let sub = Subtraction()
let result = sub.subtract(20,10) // Output: 10