I am getting time string from server but when I convert it to local time its giving incorrect year like 52635 My code is- if let dateVal = (model.insert_date){
I have a List that's displaying two Views of the same type. When you tap on one of the views, they change their height with an animation. However, the List tho
How to hide header and footer in WKWebView in swift in IOS 14 I am using below code for loadiing thr website inside webview. webview.load(URLRequest.init(url:
I want to resize an Image frame to be a square that takes the same width of the iPhone's screen and consequently the same value (screen width) for height. The
I'm making a chart by using chart iOS framework. but the value will overlay when the slice is tiny. How can I hide it? This question is similar to this GitHub l
Can @StateObject be injected using Resolver? I have the following: struct FooView: View { @StateObject private var viewModel: FooViewModel some code }
Assuming I have a Package.swift like this below, and SomePackage from the dependencies produces warnings during swift build. // swift-tools-version:4.0 import
How can I use a SwiftUI view struct in place of a traditional cell and xib in a UITableViewController? import UIKit import SwiftUI class MasterViewController:
Hyperlink is shown at last for attached image, want to show highlighted option value from device setting section to my app . How to get current value of AutoFi
I am updating my app to adapt it for iPhone X. All views work fine by now except one. I have a view controller that presents a custom UIView that covers the who
I have an array with multiple values (Doubles), many of which are duplicates. I'd like to return or print a list of all unique values, along
I'm having a memory issue while pushing/segueing to certain UIViewControllers [ChallengePrivacySettingViewC]. All of component of the ChallengePrivacySettingV
I have a custom camera which takes photo in portrait mode. My issue is that if i try to take a photo in landscape and save it then the picture is still saved i
I need to convert from type Any? to Data. something like this func getItem(item:Any?) { let data = convertToData(item) }
Basically I want to hide dash between the bars from waterfall chart.I am using highcharts iOS wrapper.I can only change type of dash but there is no option to h
I'm trying to write an extension to satisfy a protocol in an extension like so: extension UIColor: JSONRepresentable { convenience init?(json: Any) {
I have a list of Text views that include a year saved as an int. I'm displaying it in an interpolated string: Text("\($0.property) \($0.year) \($0.etc)") The p
Default swift project with view controller embedded in navigationController and pushing to next UIHostingController. How to call navigationController?.popViewC
I have WKWebView that I want to use to browse a certain web site. However some links with target="_blank" are not always opening. From run to run, I get differe
We are facing the following networking error when the response is somehow large(14kb) on iOS 13. [-1103] Error Domain=NSURLErrorDomain Code=-1103 "resource ex