-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320 from salemove/dev
Glia Widgets SDK Release 0.9.0
- Loading branch information
Showing
188 changed files
with
4,664 additions
and
715 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
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
GliaWidgets/Component/AttachmentList/Item/AttachmentSourceItemStyle.Accessibility.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,16 @@ | ||
extension AttachmentSourceItemStyle { | ||
/// Accessibility properties for AttachmentSourceItemStyle. | ||
public struct Accessibility: Equatable { | ||
/// Flag that provides font dynamic type by setting `adjustsFontForContentSizeCategory` for component that supports it. | ||
public var isFontScalingEnabled: Bool | ||
|
||
/// | ||
/// - Parameter isFontScalingEnabled: Flag that provides font dynamic type by setting `adjustsFontForContentSizeCategory` for component that supports it. | ||
public init(isFontScalingEnabled: Bool) { | ||
self.isFontScalingEnabled = isFontScalingEnabled | ||
} | ||
|
||
/// Accessibility is not supported intentionally. | ||
public static let unsupported = Self(isFontScalingEnabled: false) | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
GliaWidgets/Component/Bubble/BubbleStyle.Accessibility.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,24 @@ | ||
extension BubbleStyle { | ||
/// Accessibility properties for BubbleStyle. | ||
public struct Accessibility: Equatable { | ||
/// Accessibility label for BubbleView. | ||
public var label: String | ||
/// Accessibility hint for BubbleView. | ||
public var hint: String | ||
|
||
/// | ||
/// - Parameters: | ||
/// - label: Accessibility label for BubbleView. | ||
/// - hint: Accessibility hint for BubbleView. | ||
public init(label: String, hint: String) { | ||
self.label = label | ||
self.hint = hint | ||
} | ||
|
||
/// Accessibility is not supported intentionally. | ||
public static let unsupported = Self( | ||
label: "", | ||
hint: "" | ||
) | ||
} | ||
} |
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
28 changes: 28 additions & 0 deletions
28
GliaWidgets/Component/Button/Action/ActionButtonStyle.Accessibility.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,28 @@ | ||
extension ActionButtonStyle { | ||
/// Accessibility properties of ActionButtonStyle. | ||
public struct Accessibility: Equatable { | ||
/// Accessibility label. | ||
public var label: String | ||
|
||
/// Flag that provides font dynamic type by setting `adjustsFontForContentSizeCategory` for component that supports it. | ||
public var isFontScalingEnabled: Bool | ||
|
||
/// | ||
/// - Parameters: | ||
/// - label: Accessibility label. | ||
/// - isFontScalingEnabled: Flag that provides font dynamic type by setting `adjustsFontForContentSizeCategory` for component that supports it. | ||
public init( | ||
label: String, | ||
isFontScalingEnabled: Bool | ||
) { | ||
self.label = label | ||
self.isFontScalingEnabled = isFontScalingEnabled | ||
} | ||
|
||
/// Accessibility is not supported intentionally. | ||
public static let unsupported = Self( | ||
label: "", | ||
isFontScalingEnabled: false | ||
) | ||
} | ||
} |
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
27 changes: 27 additions & 0 deletions
27
GliaWidgets/Component/Button/Header/HeaderButtonStyle.Accessibility.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,27 @@ | ||
extension HeaderButtonStyle { | ||
/// Accessibility properties of HeaderButtonStyle. | ||
public struct Accessibility: Equatable { | ||
/// Accessiblity label. | ||
public var label: String | ||
/// Accessibility hint. | ||
public var hint: String | ||
|
||
/// | ||
/// - Parameters: | ||
/// - label: Accessiblity label. | ||
/// - hint: Accessibility hint. | ||
public init( | ||
label: String, | ||
hint: String | ||
) { | ||
self.label = label | ||
self.hint = hint | ||
} | ||
|
||
/// Accessibility is not supported intentionally. | ||
public static let unsupported = Self( | ||
label: "", | ||
hint: "" | ||
) | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
GliaWidgets/Component/Button/Message/MessageButtonStyle.Accessibility.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,16 @@ | ||
extension MessageButtonStyle { | ||
/// Accessibility properties of MessageButtonStyle. | ||
public struct Accessibility: Equatable { | ||
/// Accessibility label of the button. | ||
public var accessibilityLabel: String | ||
|
||
/// | ||
/// - Parameter accessibilityLabel: Accessibility label of the button. | ||
public init(accessibilityLabel: String) { | ||
self.accessibilityLabel = accessibilityLabel | ||
} | ||
|
||
/// Accessibility is not supported intentionally. | ||
public static let unsupported = Self(accessibilityLabel: "") | ||
} | ||
} |
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
Oops, something went wrong.