The paper deals with nanostructuring of superconducting materials by means of swift heavy ion beams. The aim is to modify their structural, optical and electromagnetic properties in a controlled way, to provide possibility of making them functional for specific applications. Results are presented concerning flux pinning effects (implantation of columnar defects with nanosize cross section to enhance critical currents and irreversibility fields), confined flux-flow and vortex guidance, design of devices by locally tailoring the superconducting material properties, analysis of disorder-induced effects in multi-band superconductors. These studies were carried out on different kinds of superconducting samples, from single crystals to thin films, from superconducting oxides to magnesium diboride, to recently discovered iron-based superconductors.