Category "ios"

How to link to documentation from another module/package in xcode docc?

I am trying to create articles in my docc in xcode. My project have multiple modules. For link to article within one module i have doc: markup. But i don`t unde

UITableView content stuck under UINavigationBar, maybe caused by scrollEdgeAppearance?

I've made hundreds of table view controllers over the last decade and I don't know why this is happening. The content of my UITableView is stuck under my UINavi

Video upload with Instagram API now allowed?

According to the Instagram documentation, Instagram only allows API uploads for images (JPG, PNG). A new iPhone app called Cinamatic allows users to upload vi

iOS - CocoaPods requires your terminal to be using UTF-8 encoding - after latest flutter upgrade

I am getting this error after I upgraded flutter. Before upgrading everything was working normal on both iOS and android. Now my project is not building in iOS.

iOS - CocoaPods requires your terminal to be using UTF-8 encoding - after latest flutter upgrade

I am getting this error after I upgraded flutter. Before upgrading everything was working normal on both iOS and android. Now my project is not building in iOS.

Mic input through headphones and output to iPhone speakers

Is there any way yet of being able to use wired headphones' mic as input and iPhone speakers as output using the high level AVFoundation framework: AVAudioSessi

How to resign first responder from text field when user tap elsewhere?

I have filled my view with ScrollView (same size as the view) and I'm stuck at how to resign first responder when user tap elsewhere in the View (or the scrollv

Kivy use Android Notifications

Is it possible to use python and/or kivy to send local notifications on ios? Really it does not have to vibrate, just a number icon and maybe a real-time messag

Detect button click in WKWebview

In my IOS Application I've created a WKWebview of a website that I'm not owning myself. So inside my: func webView(_ webView: WKWebView, didFinish navigation:

How to assign default modifiers to a SwiftUI view?

I'm trying to make reusable custom views that themselves can be customized later. Ideally I'd be able to define default modifiers like Color, Font, etc that the

Unable to set accessibilityIdentifier of UISegmentedControl's segments

I found out, that even though I could set accessibilityLabel of UISegmentedControl's segment (see: How do I set the accesibility label for a particular segment

showBluetoothAccessoryPickerWithNameFilter:completion: cancel button

is there a way to catch the cancel button event on a showBluetoothAccessoryPickerWithNameFilter:completion:? completion block is executed in the same time (way

Swift ios check if remote push notifications are enabled in ios9 and ios10

How can I check if the user has enabled remote notifications on ios 9 or ios 10? If the user has not allowed or clicked No I want to toggle a message asking if

DragGesture on a VStack with lot of Buttons, how to detect when the drag is inside a Button

In UIKit this could be done with code like this: if button.frame.contains(sender.location(in: rightStackView)) { ... } but in SwiftUI I can't seem to find an

Xcode gave strange newsstand-error when trying to submit an app

finaly everything works fine and I want to submit my first app the the Appstore. But when I click submit in Xcode 4.1 I get this strange error message: To i

Dismiss Keyboard

So I have a self created top bar controller that is being implemented in my other controllers views. I have a textfield on this top bar. I was wondering what

How to consecutively present two alert views using SwiftUI

I want to immediately present the second alert view after click the dismiss button of the first alert view. Button(action: { self.alertIsVisible = true })

How to popup a document picker in ios and macos using catalyst

I'm trying to popup a document picker using mac catalyst, but all I get is a blank screen. All works well on ios 13.2.2 on iPad and iPhone, but not on macos 10

How to check light intensity using iPhone camera

Is there any way to check the light intensity using iPhone? Does API allows to do this?

Swift function returning two different types

I need a function that can return either a String or an Int depending on the parameters entered eg: func getValue (type: String) -> (String || Int) { //thi