@@ -15,23 +15,27 @@ public final class ButtonGroupTag: TagRenderer {
1515
1616 try tag. requireParameterCount ( upTo: ButtonGroupTag . paramCount)
1717
18- var group = GroupKeys . standard. rawValue
18+ var group = GroupKeys . standard
1919 var classes : String ?
2020 var aria = UUID ( ) . uuidString
2121
2222 if tag. parameters. count > 0 {
2323 guard let param = tag. parameters [ 0 ] . bool else {
24- throw tag. error ( reason: " Wrong type given (expected a bool): \( type ( of: tag. parameters [ 0 ] ) ) " )
24+ throw tag. error (
25+ reason: " Wrong type given (expected a bool): \( type ( of: tag. parameters [ 0 ] ) ) "
26+ )
2527 }
2628
2729 if param {
28- group = GroupKeys . vertical. rawValue
30+ group = . vertical
2931 }
3032 }
3133
3234 if tag. parameters. count > 1 {
3335 guard let param = tag. parameters [ 1 ] . string else {
34- throw tag. error ( reason: " Wrong type given (expected a string): \( type ( of: tag. parameters [ 1 ] ) ) " )
36+ throw tag. error (
37+ reason: " Wrong type given (expected a string): \( type ( of: tag. parameters [ 1 ] ) ) "
38+ )
3539 }
3640
3741 if param. count > 0 {
@@ -41,7 +45,9 @@ public final class ButtonGroupTag: TagRenderer {
4145
4246 if tag. parameters. count > 2 {
4347 guard let param = tag. parameters [ 2 ] . string else {
44- throw tag. error ( reason: " Wrong type given (expected a string): \( type ( of: tag. parameters [ 2 ] ) ) " )
48+ throw tag. error (
49+ reason: " Wrong type given (expected a string): \( type ( of: tag. parameters [ 2 ] ) ) "
50+ )
4551 }
4652
4753 if param. count > 0 {
@@ -57,7 +63,7 @@ public final class ButtonGroupTag: TagRenderer {
5763 throw tag. error ( reason: " Body Data Expected " )
5864 }
5965
60- var group = " <div class=' \( group) "
66+ var group = " <div class=' \( group. rawValue ) "
6167 if let classes = classes {
6268 group += " \( classes) "
6369 }
0 commit comments