-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sdds-segment-element): fixed shape style
- Loading branch information
1 parent
0ac9160
commit 9f364cb
Showing
11 changed files
with
82 additions
and
139 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
42 changes: 0 additions & 42 deletions
42
...mponents/Components/SDDSSegmentElement/SegmentAppearance/SegmentElement+Exstensions.swift
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
...ponents/Components/SDDSSegmentElement/SegmentAppearance/SegmentElementAccessibility.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,40 @@ | ||
import Foundation | ||
|
||
public struct SegmentElementAccessibility { | ||
public var label: String | ||
public var hint: String | ||
public var value: String | ||
|
||
/** | ||
Инициализатор для создания параметров доступности кнопки. | ||
|
||
- Parameters: | ||
- label: Метка доступности для кнопки. | ||
- hint: Подсказка доступности для кнопки. | ||
- value: Значение доступности для кнопки. | ||
*/ | ||
public init(label: String, hint: String, value: String) { | ||
self.label = label | ||
self.hint = hint | ||
self.value = value | ||
} | ||
|
||
/** | ||
Инициализатор для создания параметров доступности кнопки с пустыми значениями. | ||
*/ | ||
public init() { | ||
self.label = "" | ||
self.hint = "" | ||
self.value = "" | ||
} | ||
} | ||
|
||
extension SegmentElementAccessibility { | ||
var buttonAccessibility: ButtonAccessibility { | ||
ButtonAccessibility( | ||
label: label, | ||
hint: hint, | ||
value: value | ||
) | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ents/SDDSSegmentElement/SegmentAppearance/SegmentElementAppearance+ButtonAppearance.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,19 @@ | ||
import Foundation | ||
|
||
extension SegmentElementAppearance { | ||
var buttonAppearance: ButtonAppearance { | ||
.init( | ||
size: self.size, | ||
shapeStyle: self.shapeStyle, | ||
titleTypography: self.titleTypography, | ||
titleColor: self.titleColor, | ||
subtitleTypography: self.subtitleTypography, | ||
subtitleColor: self.subtitleColor, | ||
iconColor: self.iconColor, | ||
spinnerColor: ButtonColor(), | ||
backgroundColor: self.backgroundColor, | ||
disabledAlpha: self.disabledAlpha, | ||
loadingAlpha: 0 | ||
) | ||
} | ||
} |
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
25 changes: 0 additions & 25 deletions
25
.../SDDSComponents/Components/SDDSSegmentElement/SegmentAppearance/SegmentElementColor.swift
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...Components/Components/SDDSSegmentElement/SegmentAppearance/SegmentElementShapeStyle.swift
This file was deleted.
Oops, something went wrong.
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