@@ -759,11 +759,14 @@ public enum CardTests {
759
759
}
760
760
} cardBody: {
761
761
VStack ( alignment: . leading, spacing: 4 ) {
762
- _ContactItem ( title: " Title " ,
763
- subtitle: " Subtitle " ,
764
- actionItems: _ActivityItems ( actionItems: [ . init( type: . phone) , . init( type: . email) ] , didSelectActivityItem: { dataType in
765
- print ( " \( dataType) " )
766
- } ) )
762
+ ContactItem ( title: " Title " , subtitle: " Subtitle " , activityItems: [
763
+ . init( type: . phone, didSelectActivityItem: {
764
+ print ( " phone " )
765
+ } ) ,
766
+ . init( type: . email, didSelectActivityItem: {
767
+ print ( " email " )
768
+ } )
769
+ ] )
767
770
768
771
Map ( coordinateRegion: . constant( CardTests . region) )
769
772
. frame ( height: 200 )
@@ -793,11 +796,14 @@ public enum CardTests {
793
796
}
794
797
} cardBody: {
795
798
VStack ( alignment: . center, spacing: 4 ) {
796
- _ContactItem ( title: " Title " ,
797
- subtitle: " Subtitle " ,
798
- actionItems: _ActivityItems ( actionItems: [ . init( type: . phone) , . init( type: . email) ] , didSelectActivityItem: { dataType in
799
- print ( " \( dataType) " )
800
- } ) )
799
+ ContactItem ( title: " Title " , subtitle: " Subtitle " , activityItems: [
800
+ . init( type: . phone, didSelectActivityItem: {
801
+ print ( " phone " )
802
+ } ) ,
803
+ . init( type: . email, didSelectActivityItem: {
804
+ print ( " email " )
805
+ } )
806
+ ] )
801
807
802
808
KPIItem ( data: . components( [ . unit( " R " ) , . metric( " 294 " ) , . unit( " L " ) ] ) , subtitle: " Label " )
803
809
}
0 commit comments