FoundationKit is a collection of extensions and utilities for Foundation framework.
Utility that allows you to detect links in a given string.
let detector = LinkDetector()
let links = detector.detectLinks(in: "Hello, check this link https://github.com")
print(links) // ["https://github.com"]
Wrapper for NotificationCenter that allows you to observe and post notifications.
NotificationToken
is a token that is used to remove the observer when it is deallocated.
NotificationDispatcher.addObserver(forName: .didReceiveData) { notification in
print("data received")
}.store(in: &tokens)