From 9bbe45826231b683d3270bdcaca0f3cb03b87fbb Mon Sep 17 00:00:00 2001 From: Pierre-Yves Lapersonne Date: Tue, 21 Jan 2025 09:35:01 +0100 Subject: [PATCH] docs: more references to docs and API, smaller content Signed-off-by: Pierre-Yves Lapersonne --- README.md | 67 +++++++++++++------------------------------------------ 1 file changed, 15 insertions(+), 52 deletions(-) diff --git a/README.md b/README.md index 6eedac355d..973257a2f2 100644 --- a/README.md +++ b/README.md @@ -3,25 +3,17 @@

OUDS iOS provides Orange iOS components to developers and a demo application.
- Report bug + Report bug · - Request feature + Request feature · - Online documentation -· - Wiki + Swift documentation + · + Wiki + · + Design system

-## Table of contents - -- [Status](#status) -- [Content](#content) -- [OUDS](#ouds) -- [Import the library](#import-the-library) -- [Bugs and feature requests](#bugs-and-feature-requests) -- [Contributing](#contributing) -- [Copyright and license](#copyright-and-license) - ## Status [![MIT license](https://img.shields.io/github/license/Orange-OpenSource/ouds-ios?style=for-the-badge)](https://github.com/Orange-OpenSource/ouds-ios/blob/main/LICENSE) @@ -44,51 +36,22 @@ You can find the [detailed technical documentation online](https://ios.unified-d Details about the project are also [available in the wiki](https://github.com/Orange-OpenSource/ouds-ios/wiki). -**⚠️ This release should not be used as is. This is only an incremental version of OUDS iOS library.** +You can find the [available API online on the wiki](https://github.com/Orange-OpenSource/ouds-ios/wiki/01-%E2%80%90-Available-API). + +``` +⚠️ This release should not be used as is. This is only an incremental version of OUDS iOS library. +``` ## OUDS OUDS means "Orange Unified Design System". + This is a new design system, again, but _unified_, trying to merge all requirements of Orange brands and affiliates so as to provide a unique design system, unified across all platforms and for all countries, companies, users and apps. Guidelines for TV, Android, iOS and web environments will be merged in a "cohesive" approach, and any Orange-related softwares including brand apps like *Parnasse* and *Sosh*, *Orange Innovation Cup* apps and Orange countries and affiliates app will use this project in the future. -The project is open source and topics like accessibility and ecodesign are also managed. -It should replace internal frameworks and also [ODS](https://github.com/Orange-OpenSource/ods-ios) in the near future. -## Import the library - -Add in *Xcode* the Swift package dependency `https://github.com/Orange-OpenSource/ouds-ios`. - -Then add in your project the modules you need within: -- `OUDSModules` containing OUDS modules with features -- `OUDSComponents` containing all components embeded also inside _modules_ -- `OUDSThemesInverseTheme` providing a _theme_ with inverted colors for _components_ -- `OUDSThemesOrangeTheme` providing the default _Orange_ theme defining style for _components_ -- `OUDS` providing basic objects and low layer of responsabilities to help to implement _themes_ -- `OUDSTokensComponent` providing _component tokens_ for _components_ to add in applications and _modules_ -- `OUDSTokensSemantic` providing _semantic tokens_ -- `OUDSTokensRaw` providing _raw tokens_ -- `OUDSFoundations` providing low level and utils objects. - -You must define the theme you use in your app root view: - -```swift -import OUDS // To get OUDSThemeableView -import OUDSThemeOrange // To get OrangeTheme -import SwiftUI - -@main -struct YourApp: App { - var body: some Scene { - WindowGroup { - OUDSThemeableView(theme: OrangeTheme()) { - // Your root view - } - } - } -} -``` +The project is open source and topics like accessibility and ecodesign should be also managed. -Then get the current thme using `@Environment(\.theme) var theme` and use it! You can also use the moudles and the components exposed by the library. +It should replace internal frameworks and also [ODS](https://github.com/Orange-OpenSource/ods-ios) in the near future. ## Bugs and feature requests