In the textbox provided, write Swift code to that will accom…

In the textbox provided, write Swift code to that will accomplish the following tasks: =================== -Create Dictionary, where the values are a mixture of doubles, integers, strings, and booleans.  * then Print the key/value pairs within the collection ================== KEYS AND VALUES ARE KEY                      VALUE =================== CLUBS                 4 (INT) HEARTS              15.25 (DOUBLE DIAMONDS        false (boolean) SPADES               JACK (STRING ========== 2- Create a variable total of type Double set to 20.  ======= Then loop through the DICTIONARY that was loaded, and     modify the total variable in the following ways: ———————————————— for integer and double values: *. add the value of each integer and double to your total variable’s value   ————————————— * for string values: For each string value, add 1 1/2  to the total.  ———————— For each boolean value,         for those that the value is true:                 DECREASE the total  by 6          for those that ARE NOT true (or it is false):                INCREASE it by 10. ONCE the total has been updated:  Print the value of total. =============