Category "ios"

Avplayer item pre buffering while scrolling on UITableView

I have created an UITableView with custom UITableViewCells. UITableView consists of images and videos that load via internet. While user is scrolling in one of

How to set iOS simulator's default language in Xcode 13 & iOS 15?

When creating a new iOS simulator from Xcode and booting it up, it picks up its language from the macOS's keyboard language. Creating a simulator with an older

Xcode failed to log metrics boringssl

I'm building a simple Xcode project to help me calculate taxes. I'm requesting an xml url but getting the error: [boringssl] boringssl_metrics_log_metric_block

UITextView contentSize is not update after paste swift iOS

When I paste some text, textview height of contentSize is not correct. It returns text height before paste. For example, I expect height value : [contentSize He

Detect DJI drone power down event while RC is still powered on

Is there a way to determine when the drone has been powered down (when the remote controller is still powered on)? For example a pilot may change the drone batt

Performing a multi-finger swipe using XCUITest

I am working with an app that supports swipe gestures with multi-fingers (2 finger down swipe, etc.), and would like to simulate this in XCUITests. I see that X

Flutter formkey exception displayed _CastError (Null check operator used on a null value)

I have created a form by wrapping a column widget in Form() as so Form( key: formKey, child: Column( children: [ But when I try to set fina

Unable to identify bug where final iteration (index) in ForEach does not update the view (SwiftUI)

Original question/post: Below is a snippet from an educational animals app for kids that is currently in beta testing. The below represents cards in a tab view

iOS TikTok's internal browser doesn't activate javascript redirect to url

When my page is opened from tapping the link on a TikTok iOS app profile, my javascript redirect doesn't fire when the page is loaded in the webview. If you hit

Xcode program: Text box that the user can interact with through touch

I am new to Xcode and Swift. I want to create a text box for a video game that acts as the dialogue between the game and the user. for example I want the text b

Bottom overflowed by xxx pixel using TabBarView() in flutter

I have 2 columns on the top is simple container and the the bottom is TabBarView() what I want to achieve is the tabbarview() result is scrollable using singlec

iOS TextView is saved blurry when scaled

I tried save textview as image with not device scale. I implemented a method to save an image by adding an arbitrary textview according to the UI value. Because

Disable dark mode on iOS app while still being able to get prefers-color-scheme from WKWebView

I'm using the newest version on Xcode for my iOS app. I don't want iOS to automatically change the colors in my app when device is in dark mode, because it does

Linker errors in Xamarin Forms iOS

I am getting below linker errors upon build in an Xamrain Forms iOS project. I have tried from both a Visual Studio for Mac and from Visual Studio Windows paire

Custom Decodable JSON - Get first array element

I have JSON data that looks like this: { // Other attributes here.... "id": "a4s5d6f8ddw", "images": { "selection": [ { "url": "https://

How to change back button text in iPad in Swift UI?

Working on iPhone, iPad and Mac OS app, which has login screen. I took login View in NavigationView, when I tap on back button the login view will slide as spli

SWIFT Longitude and latitude from GoogleAutocomplete save in Firestore as nil

I am trying to save longitude and latitude to Firestore from GoogleAutocomlete but it saves as 0. I am able to save name and address successfully from the textf

Xcode 13.3.1 showing Build input files cannot be found error after changing my device

I recently changed my device from iPhone 8 to an iPhone 13 mini and tried to run my app on it but xcode is failing and showing me Build input files cannot be fo

Define Thumbnail in iOS Notifications

if you are receiving a local or push notification on iOS 15, normally you see the app's icon on the left of the notification and have the ability to attach medi

SwiftUI navigationLink isActivie not working [closed]

Purpose My intention is to come back from view3 and return directly to view1 Current Status My view hierarchy here is view1 -> view2 ->