Hi Brian, Thanks for the tutorial. Question, how come your Message is a class and not a struct?
@oisbelsimpsonverdecia94584 жыл бұрын
Hello. Can you do a video about GET or POST request to an API that the server require Basic Auth in Swift 5. There is some info about a delegate implement authentication challenge but is not clear. Thank you in advance.
@abdorizak2 жыл бұрын
I also need this
@DjLeonSKennedy4 жыл бұрын
JavaScript "fetch" now looks ideal of all possible way to make request in the universe! what a noisy language this swift
@ucmanhpham56474 жыл бұрын
I am not well about javascript, but i guess that Js is script lang in browser and request JSON type is Javascript code, Of course, it is convenient to fetch
@darinburch90433 жыл бұрын
THANK YOU SOOOOOO MUCH!!!
@artempushko3 жыл бұрын
Thank you!!!
@nassimakkache48365 жыл бұрын
thanks for the video Brian. i want to opload a picture to server how i can do ? please
@AlexCio5 жыл бұрын
Great tutorial! :)
@ea98492 жыл бұрын
Shouldn't post return 201 created instead of 200?
@kolinj91864 жыл бұрын
Thank you for this! Is there a link anywhere to the files? I try to copy all the code but have some typos that I can't seem to find....
@brianelliott19314 жыл бұрын
Me too!
@zidniryi3 жыл бұрын
Can you share the code
@guruitcompany5 жыл бұрын
Cool, thank you 👍❤️
@BarisSaglam05 жыл бұрын
I start to learn developing IOS apps with Swift. I want to ask something. I always use libraries like 'Moya' or 'Alamofire' to request API. What do you think should i use libraries or is that enough ?
@BrianAdvent5 жыл бұрын
Alamofire e.g. is really powerful and simplifies a lot of networking tasks. However, it is a dependency (well maintained and tested but still a dependency) that you might not need for the usage of a simple API. If it gets more complex (image data transfer, certificate handling, request retrying, ...) then I would also choose e.g. Alamofire.
@shivaskanthan61445 жыл бұрын
I would suggest using URLSessions as opposed to AlamoFire. There are a lot of excellent articles on it replacing AlamoFire as the go to library since its built and managed by Apple
@BarisSaglam05 жыл бұрын
@@BrianAdvent Thanks for your reply :)
@BarisSaglam05 жыл бұрын
@@shivaskanthan6144 Thanks for your reply :)
@dolphinmoto32265 жыл бұрын
Hi, Brian! Thank you for videos! I have been writing program on mac os. I need to store application preferences. What i should use? Core data? Bundles? Or something else. Can u help me please? Thanks a lot!
@sinntechnologies62854 жыл бұрын
I had to find an answer to these questions a couple weeks ago. If you have relational data, you would use core data. If you have none private data with small bits of information, such as theme colors. You would use UserDefaults. If you have small amounts of data that needs to stay private, such as passwords or tokens. You would use Keychain. I know this was a year ago, but in case others are looking.
@dolphinmoto32264 жыл бұрын
Thanks! Really good answer👍😃
@steveroseik3 жыл бұрын
why dont you share the code?
@EnglishTurkishExpert2 жыл бұрын
How to add another parameter to the body?
@mehankjain62014 жыл бұрын
Hi I want to post json array with json objects using swift but not understanding how to solve this problem can you please help me Example [ {"ABC":"ABC"},{"ABC":"ABC"} ]
@ramazan54512 жыл бұрын
The error comes out (2021-11-19 12: 31: 50.086033 + 0600 ParseJson [23603: 750804] [UICollectionViewRecursion] cv == 0x14a8ca000 Disabling recursion trigger logging, An error occuredresponseProblem) please help
@devfurkan3 жыл бұрын
i ask a question ? . im write self.resourceURL = resourceURL . ı get error " assigning a property to itself ". what ı should do and your suggestion? please help brian.
@sunnykumarrathore52443 жыл бұрын
try self.resourceURL = self
@NikeTao5 жыл бұрын
Is there by chance a WebSocket framework that uses Swift?
@devfurkan3 жыл бұрын
İ use host but i have a id and password , how to add in code this id and password
@edmfestivals60664 жыл бұрын
Why not use postman
@devhopes5 жыл бұрын
Great video Brian. I am looking to do something similar. I have a ride sharing app where the rider makes a payment through PayPal and the driver gets paid through PayPal as well. The payment made from the rider is working perfectly but somehow having an issue getting the payout to the driver to work in swift. The way it was done in Android was, at the touch of a button and the balance owing to the driver in a text view, a post request is sent through Firebase functions to PayPal ... I have sent to your email the code on how it is done through Android - I need help how to do this through Swift. PLEASE HELP ~ Thanks in advance ~. lizgcanada
@miheiheld44585 жыл бұрын
link on the Get request video kzbin.info/www/bejne/qpXbfHyGpbV3d6s