Skip to content

Commit afd9145

Browse files
committed
[Refactoring] Update rules
1 parent 881cfc4 commit afd9145

File tree

93 files changed

+6716
-1879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+6716
-1879
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DerivedData/
77
.swiftpm/
88
*Generated/
99
Package.resolved
10-
10+
.home/
1111

1212
# SwiftLint Remote Config Cache
1313
.swiftlint/RemoteConfigCache

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ parent_config: https://raw.githubusercontent.com/leboncoin/spark-ios-common/main
22

33
excluded:
44
- "**/*.generated.swift"
5+
- ".build/"

Sources/Core/AccessibilityIdentifier/TextLinkAccessibilityIdentifier.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// TextLinkAccessibilityIdentifier.swift
33
// SparkComponentTextLink
44
//
5-
// Created by robin.lemaire on 05/12/2023.
6-
// Copyright © 2023 Leboncoin. All rights reserved.
5+
// Created by robin.lemaire on 25/11/2025.
6+
// Copyright © 2025 Leboncoin. All rights reserved.
77
//
88

99
/// The accessibility identifiers for the textLink.

Sources/Core/Documentation.docc/Documentation.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# ``SparkComponentTextLink``
22

3-
The Spark Textlink is a reference to a resource.
3+
A textlink is a reference to a resource.
4+
5+
6+
It can be external (e.g. a different web page) or internal (e.g. a specific element in the current page).
47

58
## Overview
69

@@ -10,12 +13,27 @@ It can be external (e.g. a different web page) or internal (e.g. a specific elem
1013

1114
### Implementation
1215

13-
- On SwiftUI, you need to use the ``TextLinkView`` View.
14-
- On UIKit, you need to use the ``TextLinkUIView`` which inherit from an UIControl.
16+
- On SwiftUI, you need to use the ``SparkTextLink`` View.
17+
- On UIKit, you need to use the ``SparkUITextLink`` which inherit from an UIControl.
18+
19+
### Accessibility
20+
21+
By default, the accessibilityLabel is equals to the text.
22+
23+
To override this value, you need to set a new **accessibilityLabel**.
24+
25+
26+
The image is not accessible.
1527

1628
### Rendering
29+
- With image :
30+
![TextLink rendering.](textlink_with_image.png)
31+
32+
- Without image :
33+
![TextLink rendering.](textlink_without_image.png)
1734

18-
![Component rendering.](component.png)
35+
- With a long text :
36+
![TextLink rendering.](textlink_with_long_text.png)
1937

2038
### Resources
2139

-5.6 KB
Binary file not shown.
-4.63 KB
Binary file not shown.
2.79 KB
Loading
6.04 KB
Loading
5.59 KB
Loading
2.85 KB
Loading

0 commit comments

Comments
 (0)