Deprecation of local Theme API for benefit of OUDS library.
Note
This older API is not yet removed, if you come from v1.3.0 you should migrate to v2.1.0
- Use version 2.0.0
- Integrated OUDS library (e.g. dependency, module,
OUDSThemeableView), version 1.0.0
Impact: Low
Required Action:
- Use new init with
OUDSThemeparameter instead of localThemeparameter
Before (v2.0.0):
StatementView(xmlFileName: fileName, theme: someTheme, localUrl: detailsPageURL)After (v2.1.0):
@Environment(\.theme) var theme
StatementView(xmlFile: fileName, localUrl: detailsPageURLdetailsPageURL, theme: theme) Several types have been renamed to bring more consistency. Some parameters have been renamed to be clearer. Some types are not public anymore, they where not supposed to be public.
- Use version 1.3.0
Impact: High
Required Action:
- Do not use
InformationView,GroupViewanymore
2. DeclarationView renamed to StatementView, parameters renamed, initializer deprecated for newer ones
Impact: High
Before (v1.3.0):
DeclarationView(xmlFileName: String, selectedTheme: Theme, url: String, useWebView: Bool) After (v2.0.0):
If the URL of detailed statement points to a local file embeded in the app:
StatementView(xmlFileName: String, theme: Theme, localUrl: String) But if the URL of detailed statement points to a file outside the app, e.g. a web page:
StatementView(xmlFileName: String, theme: Theme, remoteUrl: String, useWebView: Bool) Required Action:
- Step 1: Rename all
DeclarationViewuses toStatementView - Step 2: Rename all
selectedThemeparameter uses totheme - Step 3: Rename all
urlparameter uses todetailURLif you use deprecated init, orlocalUrlorremoteUrlif you use new initializers - Step 4: Rename all
xmlFileNameparameter uses toxmlFileif you use new initializers
Reason for Change: Parameters were not well named, types were not well named, previous initializer had side effects (e.g. no web view for local file resulted in no page)
- Backward Compatibility: No
- v1.3.0 Support: Use dedicated Git branch release/1.x
- End of Support: End of 2026
If you encounter issues: