-
Notifications
You must be signed in to change notification settings - Fork 9
[#1336] In documentation add new tutorial since Mobile App Dev Days #1347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
pylapp
merged 4 commits into
develop
from
1336-in-documentation-add-new-tutorial-with-orange-branded-app
Mar 19, 2026
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6b6e776
docs: add new tutorial for onboarding, update discovery tutorial (#1336)
pylapp e77eb98
refactor: architecture of tutorials, project assets (#1336)
pylapp 979044b
chore: various cleanings (#1336)
pylapp 1e4c805
refactor: update samples et fix typos (#1336)
pylapp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-110 KB
.../Sources/_ThemesContract.docc/Tutorial/images/tutorial-1-ouds-swift-package.png
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+24.3 KB
...act/Sources/_ThemesContract.docc/Tutorial_discovery/resources/OUDS-Discovery-Tutorial.zip
Binary file not shown.
File renamed without changes
Binary file added
BIN
+388 KB
...Tutorial_discovery/resources/images/tutorial-discovery-1-ouds-swift-package.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
104 changes: 104 additions & 0 deletions
104
...emesContract.docc/Tutorial_discovery/tutorial-discovery-1-package-and-librairies.tutorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| @Tutorial(time: 10, projectFiles: "OUDS-Discovery-Tutorial") { | ||
| @Intro(title: "Swift Package integration") { | ||
| OUDS iOS is exposed through an open source Swift Package hosted on GitHub, and provides several librairies for your needs. | ||
| These librairies help to split products and make users able to select only what they need. | ||
| SwiftUI is the only official supported framework for Apple platforms. | ||
|
|
||
| @Image(source: "ic_unified_ds", alt: "Logo of OUDS") | ||
| } | ||
|
|
||
| @XcodeRequirement(title: "Xcode 26.2", destination: "https://developer.apple.com/download/") | ||
|
|
||
| @Section(title: "Import the Swift Package and the libraries") { | ||
|
|
||
| @ContentAndMedia { | ||
| OUDS for iOS is an open source Swift Package available on GitHub under MIT license. | ||
| The package and the librairies must be added through Xcode. | ||
| } | ||
|
|
||
| @Steps { | ||
| @Step { | ||
| Using Xcode, in your **project package dependencies**, add a new **dependency**. | ||
| Search with the GitHub repository URL (https://github.com/Orange-OpenSource/ouds-ios), and select the *ouds-ios* dependency. | ||
| You can then choose the **dependency rule** you want. | ||
| To know which version you need, you can have a look on the [available API list](https://github.com/Orange-OpenSource/ouds-ios/wiki/01-%E2%80%90-Available-API) | ||
| and also the [GitHub releases](https://github.com/Orange-OpenSource/ouds-ios/releases). | ||
| Let's say you will use some beta version today, e.g. the version1.3.0-beta.2 | ||
|
|
||
| @Image(source: "tutorial-discovery-1-ouds-swift-package", alt: "Description by Xcode of the OUDS Swift Package with its README preview") | ||
| } | ||
|
|
||
| @Step { | ||
| Once you downloaded the package, you will see several librairies are available. | ||
| They can be embeded inside your **target** librairies. | ||
| Things are separated to let users integrate only what they need and embed the abre minimum of content. | ||
| The *OUDSThemesContract* library provides the main elements like the `OUDSThemeableView`. The theme contract is defined inside it. | ||
| *OUDSThemesOrange* provides the theme implementation for the Orange products, and contains also assets and all tokens for this theme. | ||
| *OUDSThemesSosh* provides the theme implementation for the Sosh products, and contains also assets and all tokens for this theme. | ||
| *OUDSThemesWireframe* provides the theme implementation for the Wireframe theme, which is a theme dedicated to mockups and prototypes. | ||
| *OUDSThemesOrangeCompact* provides the theme implementation for the Orange products but with constraints of sizes and spaces. | ||
| *OUDSComponents* contains the SwiftUI OUDS components defined with the Figma specifications, and also useful view modifers. | ||
| *OUDSTokensRaw*, *OUDSTokensSemantic* and *OUDSTokensComponents* are librairies defining and providing the tokens for low level (raw), | ||
| middle level (semantic) or component levels (high level). | ||
| *OUDSModules* is for modules or rich components with extra logic. | ||
| *OUDSFoundations* is dedicated to some utilities and shared logic. | ||
|
|
||
| Add for example only the umbrella product merging all products mentioned above: *OUDSSwiftUI* | ||
|
|
||
| @Image(source: "tutorial-discovery-1-ouds-libraries.png", alt: "Embed librairies inside target") | ||
| } | ||
| } | ||
| } | ||
|
|
||
| @Assessments { | ||
| @MultipleChoice { | ||
| Which of these choices is correct? | ||
|
|
||
| @Choice(isCorrect: true) { | ||
| I can contribute to OUDS using pull request | ||
|
|
||
| @Justification(reaction: "That's right!") { | ||
| OUDS is open source, under MIT license, and hosted on GitHub. Of course you can contribute! | ||
| } | ||
| } | ||
|
|
||
| @Choice(isCorrect: false) { | ||
| OUDS supports officialy all Apple OS like visionOS, tvOS, watchOS, iPadOS, iOS and also CarPlay. | ||
|
|
||
| @Justification(reaction: "Try again!") { | ||
| The main supported targets are iOS / iPadOS. However we do our best to support macOS, visionOS, tvOS and watchOS. | ||
| CarPlay specific cases are not scoped yet. | ||
| } | ||
| } | ||
|
|
||
| @Choice(isCorrect: false) { | ||
| OUDS provides UIKit components | ||
|
|
||
| @Justification(reaction: "Try again!") { | ||
| OUDS supports only SwiftUI. | ||
| } | ||
| } | ||
| } | ||
|
|
||
| @MultipleChoice { | ||
| Which imports of the OUDS Swift Package products can I choose? | ||
|
|
||
| @Choice(isCorrect: true) { | ||
| Some of the available products depending to my needs, or only `OUDSSwiftUI` if I am very lazy and don't care about my app size. | ||
|
|
||
| @Justification(reaction: "Correct!") { | ||
| You can import all products provided by the Swift Package, and tailor your choice to keep only the ones needed. | ||
| Even if we recommend to choose only the atomic products you need, the `OUDSSwiftUI` product wraps all of them. | ||
| } | ||
| } | ||
|
|
||
| @Choice(isCorrect: false) { | ||
| None, only the Swift package dependency matter. | ||
|
|
||
| @Justification(reaction: "Try again!") { | ||
| You need to chose the products the Swift package provides. | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.