Questions tagged datepicker

Explore the latest questions and answers asked by our top developers.

URLRequest.addValue() causes SwiftUI calendar to revert date

The function below is called every 3 seconds and looks like: func fetchItems(){ let url = URL(string: itemUrl)! var request = URLRequest(url: url) request.httpMethod = "GET" request.addValue("Item (self.item)", forHTTPHeaderField: "Authorization") let task = URLSession.shared.dataTask(with: request, completionHandler: parseJasonObject) task.resume() } func parseJasonObject(data: Data?, urlResponse: URLResponse?, error: Error?){ guard error == nil else { print("error: (error!)") return […]

By nickcoding
Published
Categorised as datepicker, swift, swiftui, urlrequest Tagged , , ,

DatePicker on Mac not saving date until return key is pressed

I’m adapting my iPad app to Mac with Mac Catalyst and am having a problem with the datePicker (it has a datePickerMode of time). On iPad the datePicker is a wheel and whenever the user scrolls on the date picker the dateChanged action is fired. But on Mac the date picker is not a scroller […]

By fphelp
Published
Categorised as datepicker, maccatalyst, macos, swift

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq