Edit files in IOS

What’s my options if i would like to edit .docs or .xlsm files from nextcloud app on my iphone or ipad?
Viewing them is no problem but editing them seems harder unless i download a local copy to ex, Words and edit the file and then sending a copy to nextcloud app.

A bit of a hassle so i guess there should be an easier way, right?

Also i dont have an android device to test with, is it easier on android?