Repository navigation
NoticeUI v1.7.0
🌍 Native Localization Support
NoticeUI now supports LocalizedStringKey natively — matching SwiftUI’s Text behavior for seamless internationalization.
✨ What’s New
-
Toast messages now resolve localized keys automatically
-
Full support for
LocalizedStringKeyand string literals -
Dynamic strings remain raw (no unintended lookups)
-
Localization support added for:
- Toast titles
- Toast messages
- Action button labels
🧠 How It Works
Passing a string literal or LocalizedStringKey now automatically looks up values from your app’s localization files (Localizable.strings or .xcstrings), just like SwiftUI.
Dynamic/interpolated strings continue to render exactly as provided.
🎯 Why This Matters
This makes NoticeUI production-ready for multi-language apps while preserving SwiftUI-native behavior and API simplicity.
♻️ Backward Compatible
No existing code breaks — previous usage continues to work as before.
What's Changed
- Feat/localization support by @SameerNadaf in #14
- Fix localization support in Notification and Retro styles by @SameerNadaf in #15
- Resolve missing argument error for ToastTitle.custom by @SameerNadaf in #16
Full Changelog: 1.6.0...1.7.0