Using swipeFreshLayout on Fragment
I have swipeRefreshLayout on fragment on displaydata, however it does not perform the refresh function. The refresh symbol appears and then disappears as it should, but it doesn't actually refresh the pull to the api.
Home/Fragment.kt
package com.example.what2do_v6.ui.home
import android.annotation.SuppressLint
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import...