First, clone the repository and open the .xcodeproj
or .xcworkspace
file in Xcode.
The InterestingNumbersLibrary is utilized in the FactsViewController
. It is initialized as:
var numbersManager = NumbersManager()
In the viewDidLoad
method, the ViewController is set as the delegate of the numbersManager
:
numbersManager.delegate = self
The numbersManager
fetches facts according to the user's input:
numbersManager.fetchFacts(numbers: userInput)
The results are then processed and displayed in the collectionView.
Contributions are welcome! Please read the contribution guidelines first.
This project is available under the MIT license.
The library being used for data fetching, InterestingNumbersLibrary, is open-source and hosted on GitHub here. It fetches data from the Numbers API, which may have rate limits. Please consult the Numbers API documentation for more details.
For the complete design of the app, refer to this Figma link.
Author: danmarchuk
Source: https://github.com/danmarchuk/InterestingNumbers