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: Sat Oct 19 2024 12:02:19 GMT-0900 (Hawaii-Aleutian Daylight Time)