Question about materials

I need to know the syntax connected with dynamic arrays.
Could someone help me to find some suitable materials
with suitable examples?

By default swift arrays are mutable.

If you declare an array like this:

var myArray = [Int]()

It declares an empty array. You can add to, delete from or modify the content.

This is a tutorial from CodeWithChris that might be helpful.