FIrst varactors (also called
varicaps) were used.
Today tuning is mostly done digitally, eg. by synthesizing the local oscillator signal for a superhet's mixer.
Or completely in the digital domain by undersampling (look up SDR - software defined radio).