ios13

Three-finger undo gesture with custom undo manger

霸气de小男生 提交于 2019-12-08 05:34:19
问题 I'm trying to handle the three-finger gesture with a custom undo manager. Using the default undo manager provided by the window, resolved via the UIResponder chain works flawlessly. As soon as I try to use an own undo manager in a view controller I run into issues. (Background: I want to switch between different managers depending on the state of the view, so I can't use the single undo manager provided by the window.) What I did: override undoManager in my view controller and return an own

TextField always on keyboard top with SwiftUI

夙愿已清 提交于 2019-12-08 03:03:24
i have this struct ContentView: View { var body: some View { ZStack(alignment: Alignment.bottom) { List { Text("Default text").foregroundColor(Color.red) } TextField("Placeholder", text: .constant("")) .frame(minHeight: 30) .cornerRadius(8.0) .padding(10) .background(Color.blue) } } } Actually, when i focus on the TextField, keyboard hide this textfield. Is there a simple solution in SwiftUI to keep the textfield always on keyboard's top ? Here is a snippet that observes NotificationCenter notifications related the keyboard, and changes the height of a spacer view based on the computed

NFC iOS 13 read/write trouble

筅森魡賤 提交于 2019-12-07 23:54:22
问题 I read all documentation about CoreNFC, saw all videos about read and write tags from WWDC 2019 but i didn't find no one information about my problem. I need to write tag with some data for open door/window at office. I create simple project on swift with read NFC tags but when i hold my phone to USB reader i have the next trouble in my log: 2019-06-28 13:45:10.994351+0300 officeProj[872:62700] [xpc.exceptions] <NSXPCConnection: 0x283cec120> connection to service on pid 90 named com.apple

Mapkit is using too much CPU in IOS 13

我的未来我决定 提交于 2019-12-07 19:47:49
问题 Recently my iOS app starting crashing frequently after some users updated to iOS 13.x (it doesn't exhibit the problem in iOS 12.x) I am using Mapkit to render some MKPolygons and MKPolylines. The MKPolylines get removed and re-added to the MKMapView around 10 times per second (that's because my GPS is giving me new lat/longs at 10Hz). I profiled my app in iOS 12.x and it is using around 15% to 30% of CPU resources (iPad Mini 4). I did the same profiling in iOS 13.1.2 and 13.1.3, and the CPU

UISegmentedControl.noSegment stopped working with Xcode 11, iOS 13 [duplicate]

大兔子大兔子 提交于 2019-12-07 15:41:12
问题 This question already has answers here : Specifying UISegmentedControlNoSegment to UISegmentedControl's selectedSegmentIndex has no Effect on iOS 13 (3 answers) Closed 2 months ago . I've had two segmented controls stacked on top of each other, each with two options, so there's a 2x2 grid of filtering options for a search field. This has worked fine, but I just updated to Xcode 11 and UISegmentedControl.noSegment has stopped working when I try to update it in response to user selection.

iOS 13 UITableViewCell custom accessoryView goes out of bounds

别等时光非礼了梦想. 提交于 2019-12-07 15:38:05
问题 Working with the latest iOS 13 beta I really don't understand if it's beta issues or my issue, but I don't have this problem with iOS 12 code let button = UIButton(type: .custom) button.setTitle("connect", for: .normal) button.backgroundColor = UIColor(rgb: 0xFF0E83) button.sizeToFit() cell.accessoryView = button cell.textLabel?.text = "Title" cell.detailTextLabel?.text = "Subtitle" with result Did someone had the same issue and found a solution? Thanks 回答1: If you put the uibutton in a

dyld_shared_cache_extract_dylibs failed for 6s plus running on iOS 13.1.3

。_饼干妹妹 提交于 2019-12-07 15:33:06
问题 I am trying to run AR Project in device it gives me an dyld_shared_cache_extract_dylibs failed error. My system OS is Mojave 10.14. I tried this and this answer. But still having the same issue, Not able to run my application. Thanks in Advance. 回答1: This is happening because somehow older versions of Xcode have an issue creating these cache files properly - try below: Close Xcode Install the device support profile that matches your iOS version from here Go to: ~/Library/Developer/Xcode/iOS

How to configure ContextMenu buttons for delete and disabled in SwiftUI?

不想你离开。 提交于 2019-12-07 11:17:54
问题 I tried to configure the button in the contextMenu , but it's not working. Text("A label that have context menu") .contextMenu { Button(action: { // remove it }) { Text("Remove") .foregroundColor(.red) // Not working Image(systemName: "trash") }.disabled(true) // Not working } what I have: What I'm seeking: ( delete and call buttons) I would create a UIAction like the following in UIKit but I can't find any modifier or anyway to bring this to the SwiftUI : let delete = UIAction(title: "Remove

iOS 13 not getting VoIP Push Notifications in background

谁说胖子不能爱 提交于 2019-12-07 08:25:31
问题 I'm developing a softphone in Swift using CallKit and PushKit. Before iOS 13, VoIP notifications were working perfectly. But after the iOS 13 update, my app isn't getting VoIP push notification when it's in background. In foreground didReceiveIncomingPushWith is called, but in background it isn't called. How can I fix this issue? Code func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point

Labels and text inside Text Field becoming white automatically for iOS 13 Dark mode

£可爱£侵袭症+ 提交于 2019-12-07 06:19:56
问题 My app works fine for iOS versions below 13.0 but when i updated the device to iOS 13 and chose Dark Mode, the labels are going white(which were black earlier) automatically which is not the case with Light mode (in which it is working fine, black labels remain black). Anyone else experiencing the same and is there any fix for the same so far ? 回答1: Previously the default color of the UILabel was Black Color , but since iOS 13, the default value is LabelColor witch is a Semantic Color name