@@ -246,24 +246,26 @@ public struct SDDSTextArea: View {
246
246
247
247
@ViewBuilder
248
248
private var optionalTitleView : some View {
249
- Text ( formattedOptionalTitle )
249
+ Text ( optionalTitle )
250
250
. typography ( titleTypography)
251
251
. frame ( height: titleTypography. lineHeight)
252
252
. foregroundColor ( appearance. optionalTitleColor. color ( for: colorScheme) )
253
253
. multilineTextAlignment ( appearance. titleTextAlignment)
254
254
. debug ( condition: debugConfiguration. title)
255
+ . padding ( . leading, size. optionalPadding)
255
256
}
256
257
257
258
@ViewBuilder
258
259
private var innerOptionalTitleView : some View {
259
260
if required {
260
261
EmptyView ( )
261
262
} else {
262
- Text ( formattedOptionalTitle )
263
+ Text ( optionalTitle )
263
264
. typography ( innerTitleTypography)
264
265
. foregroundColor ( appearance. optionalTitleColor. color ( for: colorScheme) )
265
266
. multilineTextAlignment ( appearance. titleTextAlignment)
266
267
. debug ( condition: debugConfiguration. title)
268
+ . padding ( . leading, size. optionalPadding)
267
269
}
268
270
}
269
271
@@ -315,7 +317,6 @@ public struct SDDSTextArea: View {
315
317
. frame ( height: calculatedChipGroupHeight)
316
318
. padding ( . bottom, size. chipGroupVerticalBottomPadding)
317
319
. padding ( . top, size. chipGroupVerticalTopPadding)
318
- . debug ( color: . blue, condition: true )
319
320
320
321
iconActionView
321
322
. padding ( . top, size. textInputPaddings. top)
@@ -413,9 +414,10 @@ public struct SDDSTextArea: View {
413
414
if required {
414
415
EmptyView ( )
415
416
} else {
416
- Text ( " \( optionalTitle) " )
417
+ Text ( optionalTitle)
417
418
. typography ( textTypography)
418
419
. foregroundColor ( appearance. optionalTitleColor. color ( for: colorScheme) )
420
+ . padding ( . leading, size. optionalPadding)
419
421
}
420
422
}
421
423
@@ -769,10 +771,6 @@ public struct SDDSTextArea: View {
769
771
return min ( size. chipGroupHeight, chipGroupContentHeight)
770
772
}
771
773
772
- private var formattedOptionalTitle : String {
773
- " \( optionalTitle) "
774
- }
775
-
776
774
private var chipCornerRadius : CGFloat {
777
775
switch value {
778
776
case . single:
0 commit comments