0
As an example I android to do what you want to use the following:
byte[] byte = ....;
byte[] resultado = Arrays.copyOfRange(byte, 1,3);
And I intend to do the same but on Swift being that in this case instead of the byte type[] is the Data type.
What I tried to do was this:
let newNumbers:Data = dataBytes[1...3]
but gives the following error "Cannot subscript a value of type 'Data' with an index of type 'Countableclosedrange'", some can help me here?