I need to determine user's bandwidth.I want to force user to read from local data if his connection is bad although he will download it. I am doing this in Objective-C but if there a solution on Swift, It is okay.
Is there any library or any thing else to determine user bandwidth?
there is no any library for determine bandwidth in objective c. you can check bandwidth by downloading any small size file or open web page. count time duration of file downloading. then count
speed = size/time.
and delete that file. you should use delegate methods.