iOS 16 status bar height is getting wrong on iPhone 14 series – Ios swift
I have tried this solution to get status bar height on iPhone 14 series with iOS 16 but getting wrong size. In app scene delegate is not used.
I have tried this solution to get status bar height on iPhone 14 series with iOS 16 but getting wrong size. In app scene delegate is not used.
I am converting camera output 420YpCbCr8BiPlanarFullRange to ARGB8888 to order to perform some image processing. I need to convert the outcome back to 420YpCbCr8BiPlanarFullRange to stream it with webRTC: func convertTo420Yp8(source: inout vImage_Buffer) -> CVPixelBuffer? { let lumaWidth = source.width…
I am trying to get the last sentence from String after ". "(Dot And Space), Suppose I have a very long string and in that string, there are multiple ". "(Dot And Space) but I want to fetch the String…
I'm a newbie in coding and I'm learning Swift to develop my first application. I'm following this YT tutorial trying to integrate a SideMenu : https://www.youtube.com/watch?v=iq-tWW45Vhk The fact is that after I added the @IBAction func into my code like…
I have a code where I am fetching images from URLs and displaying them in a tableview, however the images only show up inside tableview when scrolling down to far bottom of the screen, as show in the image below.…
I tried to download successfully uploaded images to storage with the code: func retrieveAllPictures(helloid: String) async { //Referenzen zu den Datenbanken let db = Firestore.firestore() //Alle Foto Ids in einem Array speichern let result = try? await db.collection("events").document(helloid).getDocument() allPictureIDs =…
Is there a way in Swift that I can add an element to an XML document after passing it through a function? For example, if I pass in the text of <original> into a function, can I append it after…
Hello I'm trying to translate POST request api code written in php: <?php $methodParams = '{ "date_confirmed_from": 1407341754, "get_unconfirmed_orders": false }'; $apiParams = [ "method" => "getOrders", "parameters" => $methodParams ]; $curl = curl_init("https://api.baselinker.com/connector.php"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, ["X-BLToken:…
I have a label. If the text count in that label is 30, then after the 20th character there should be a line break. How can we achieve that? I have the label setup as below. let label = MyLabelText()…
As the title says, I have a function with these parameters: typealias Handler = (Swift.Result<Any?, APIErrors>) -> Void func viewApi (ownerId: String, accessToken: String, completionHandler: @escaping Handler ){ var viewArray: [Information] = [Information]() let headers: HTTPHeaders = [ .authorization("Bearer (accessToken)")…