FoundationKit

1.0.4

FoundationKit is a collection of extensions and utilities for Foundation framework
NikSativa/FoundationKit

What's New

1.0.4

2024-04-17T22:48:44Z

Full Changelog: 1.0.3...1.0.4

FoundationKit

FoundationKit is a collection of extensions and utilities for Foundation framework.

LinkDetector

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"]

NotificationDispatcher

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)

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Fri May 03 2024 04:50:54 GMT-0900 (Hawaii-Aleutian Daylight Time)