JamitLabs / JamitFoundation

JamitFoundation is a collection of useful concepts to enable composition oriented development with UIKit
MIT License
10 stars 5 forks source link

Adjust UserDefaults module to work without SwiftUI dependency #47

Closed JensK611 closed 3 years ago

JensK611 commented 3 years ago

The UserDefaults module is using SwiftUI API (Binding) which is only limited by iOS Version but not by availability of SwiftUI dependency. Therefore projects using UserDefaults submodule without linking SwiftUI will not work.

The Api should be encapsulated and should only be available if SwiftUI is available.