iphone-x

Can I require a user to have a True Depth camera to download my app from the App Store?

江枫思渺然 提交于 2019-12-30 17:46:22
问题 An app I want to make only makes sense with a TrueDepth camera for ARKit and augmented reality face tracking capability. Can I require a user to have a True Depth camera(iPhone X only right now) to download my app from the App Store? 回答1: No. Apple's mechanism for segregating App Store listings by device capabilities does include a front-depth-camera key. However, that key is not enabled for use by third-party apps , and Apple doesn't include it in the list of device capabilities that third

How to measure WiFi dBm strength on iPhone X iOS Swift

倾然丶 夕夏残阳落幕 提交于 2019-12-25 01:49:33
问题 I am looking for ways to get the raw signal of the wifi, the dBm on iPhone X phones, but can only find how to get the numberOfActiveBars from: Answer Trying @Mosbash answer, getting a crash. Thread 1: EXC_BAD_ACCESS (code=1, address=0x18) Code: class ViewController: UIViewController { var hotspot: NEHotspotNetwork! func viewDidLoad() { .... hotspot = NEHotspotNetwork() } func record() { hotspot.setConfidence(.high) /// <- Crash print(hotspot.signalStrength) /// <- Crash if above line is

Record video from front facing camera during ARKit ARSession on iPhone X

半腔热情 提交于 2019-12-25 01:34:55
问题 I'm using an ARSession combined with an ARFaceTrackingConfiguration to track my face. At the same time, I would like to record a video from the front facing camera of my iPhone X. To do so I'm using AVCaptureSession but as soon as I start recording, the ARSession gets interrupted. These are two snippets of code: // Face tracking let configuration = ARFaceTrackingConfiguration() configuration.isLightEstimationEnabled = false let session = ARSession() session.run(configuration, options: [

Add iPhone X layout support to old Xcode 7 / Swift 2 project

和自甴很熟 提交于 2019-12-25 01:34:07
问题 What I have? An old project using Swift 2 and building/running without any issue on Xcode 7. It has a lot of dependencies and sophisticated architecture which makes it complicated to migrate to swift 3/4 (in a short period of time). When app is running on iPhone X it has black bars on top and bottom of the sreen (sizing like on iPhone 6/7/8) What I need? I need to make the app running on iPhone X without black bars on top and bottom of the screen (fullscreen) without updating whole project .

Ionic 3 statusbar top gap on Iphone X (w/ simulator) [duplicate]

 ̄綄美尐妖づ 提交于 2019-12-24 12:21:57
问题 This question already has an answer here : Ionic - White edge on iPhone X in header (1 answer) Closed last year . Is there any working trick to solve this design bug? I'm using cordova-plugin-ionic-webview, "viewport-fit=cover" has been added to index.html. 回答1: It is related to the status bar plugin , which was fixed and merged successfully but it didn't release yet. you can try that plugin directly , for that you need to remove the plugin and installing it from the github url cordova plugin

Alerts on iPhone X shows different color with UIAlertController popup

和自甴很熟 提交于 2019-12-24 11:36:23
问题 I have an app I built in Xcode 8 for iOS 10 originally. I recently upgraded to Xcode 9 and have been making fixes to my app for the iPhone X and iOS 11. One issue I'm having a lot of trouble with is how to make the whole screen (including the area by the notch) dim when presenting an alert. See image: I am presenting the alert on the "Connect" View Controller (what you see below). I've done nothing to manipulate the root View of this View Controller. I have "checked" "Safe Area Relative

Iphone X css issue in ionic3.8.0

て烟熏妆下的殇ゞ 提交于 2019-12-24 06:05:47
问题 I am using ionic 3.8.0, and I find that when alert is present in iphoneX, the top and the grey backdrop of alert have a gap like the image below, everyone know how to fix it? thanks a lot. info: cli packages: (/usr/local/lib/node_modules) @ionic/cli-utils : 1.15.2 ionic (Ionic CLI) : 3.15.2 global packages: cordova (Cordova CLI) : 7.1.0 local packages: @ionic/app-scripts : 3.0.1 Cordova Platforms : android 6.3.0 ios 4.5.3 Ionic Framework : ionic-angular 3.8.0 System: ios-deploy : 1.9.2 ios

Is this correct to check FaceID?

只愿长相守 提交于 2019-12-23 09:58:33
问题 Sorry, unavailability of iPhone-X. After the launch of iPhone-X, everyone wants their application should be compatible with iOS11 and with touchID but the problem is it's too expensive for a developer to test touch ID. I don't have iPhone to check my code but can I check the same in iOS simulator? let context = LAContext() if ( context.biometryType == .typeFaceID ) { // Face ID } if ( context.biometryType == .typeTouchID) { // Touch ID } else { // Stone Age } 回答1: You can test it without

UIViewControllerAnimatedTransitioning with Safe Area Insets on iPhone X

前提是你 提交于 2019-12-23 09:11:17
问题 When animateTransition is called on the transitioning delegate the Safe Area Insets have yet to be set on the 'to view controller'. I've tried forcing a layout by calling: toViewController.view.setNeedsLayout() and toViewController.view.layoutIfNeeded() without success. Can anyone suggest a means of either forcing the Safe Area Insets to be set early or determining how I should know the insets in time for the transition to work as it ought. The effect is that I have a UICollectionViewCell

How to get rid of safeAreaInsets on UIScrollview (iOS 11, iPhoneX)

给你一囗甜甜゛ 提交于 2019-12-23 03:19:39
问题 I have a horizontal paging UIScrollview , following is my VFL constraints for leading/trailing H:|-0-[ScrollView]-0-| (aligned to superview). I have left/right safeAreaInsets on landscape orientation in iPhone X. Is it a bug? or I am missing any Apple way that these insets will not be applied when we do not need? 回答1: I am using following to skip content inset adjustment: UIScrollview.contentInsetAdjustmentBehavior = .never I found that in iOS 11 UIScrollViewContentInsetAdjustmentBehavior