Stringboot provides native integrations for both SwiftUI and UIKit.
SwiftUI
SBText
Use theSBText view to automatically display localized strings. It updates automatically when the language changes.
Property Wrapper
Use@StringbootString to bind a string to a property.
UIKit
SBLabel
SBLabel is a UILabel subclass that automatically updates its text.
Extensions
You can also use extensions on standard UIKit components.Manual Access
For non-UI logic, you can fetch strings asynchronously.Changing Language
To switch the language of the app:- SwiftUI
- UIKit
When you change the language using
StringbootLanguageManager or StringbootLanguageNotifier, all SBText and SBLabel instances update automatically.