-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accessibility improvements to
Broadcast
component (#1396)
* Accessibility improvements to `Broadcast` component * Add `AccessibilityData` container to `Broadcast` component * Change init method for `BroadcastDemoView` --------- Co-authored-by: Robin Saleh-Jan <[email protected]>
- Loading branch information
1 parent
e3728fe
commit 0cc82c6
Showing
5 changed files
with
50 additions
and
17 deletions.
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
18 changes: 18 additions & 0 deletions
18
FinniversKit/Sources/Components/Broadcast/Broadcast+AccessibilityData.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,18 @@ | ||
// | ||
// Copyright © FINN.no AS, Inc. All rights reserved. | ||
// | ||
|
||
extension Broadcast { | ||
public struct AccessibilityData { | ||
let broadcastLabel: String | ||
let dismissButtonLabel: String | ||
|
||
public init( | ||
broadcastLabel: String, | ||
dismissButtonLabel: String | ||
) { | ||
self.broadcastLabel = broadcastLabel | ||
self.dismissButtonLabel = dismissButtonLabel | ||
} | ||
} | ||
} |
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