-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> Co-authored-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> Reviewed-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> Tested-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com>
- Loading branch information
1 parent
9f05b20
commit 566dd06
Showing
15 changed files
with
1,185 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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 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
11 changes: 10 additions & 1 deletion
11
Showcase/Showcase.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains 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 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
48 changes: 48 additions & 0 deletions
48
Showcase/Showcase/Pages/About/AccessibilityStatement/AccessibilityStatementPage.swift
This file contains 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,48 @@ | ||
// | ||
// Software Name: OUDS iOS | ||
// SPDX-FileCopyrightText: Copyright (c) Orange SA | ||
// SPDX-License-Identifier: MIT | ||
// | ||
// This software is distributed under the MIT license, | ||
// the text of which is available at https://opensource.org/license/MIT/ | ||
// or see the "LICENSE" file for more details. | ||
// | ||
// Authors: See CONTRIBUTORS.txt | ||
// Software description: A SwiftUI components library with code examples for Orange Unified Design System | ||
// | ||
|
||
import DeclarationAccessibility | ||
import SwiftUI | ||
|
||
struct AccessibilityStatementPage: View { | ||
|
||
// MARK: Stored properties | ||
|
||
let detailsPageURL: URL | ||
|
||
// MARK: Initializer | ||
|
||
init() { | ||
guard let detailsPageURL = Bundle.main.url(forResource: "accessibility_detail", withExtension: "html") else { | ||
fatalError("Unable to find accessibility_detail.html in resources") | ||
} | ||
|
||
self.detailsPageURL = detailsPageURL | ||
} | ||
|
||
// MARK: Body | ||
|
||
var body: some View { | ||
VStack { | ||
DeclarationView(xmlFileName: "accessibility_result", selectedTheme: .orange, url: detailsPageURL.absoluteString, useWebView: true) | ||
} | ||
} | ||
} | ||
|
||
// MARK: - Previews | ||
|
||
struct AccessibilityStatementPage_Previews: PreviewProvider { | ||
static var previews: some View { | ||
AccessibilityStatementPage() | ||
} | ||
} |
Oops, something went wrong.