Skip to main content

Stringboot provides native integrations for both SwiftUI and UIKit.

SwiftUI

SBText

Use the SBText 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:
When you change the language using StringbootLanguageManager or StringbootLanguageNotifier, all SBText and SBLabel instances update automatically.