ios14

How to prevent iOS 14 Widget opening app and react to callback

时光毁灭记忆、已成空白 提交于 2021-02-04 07:38:25
问题 So, I already read several blogs, posts, and Apple's own Human Interface Guidelines that iOS 14 Widgets are NOT interactive, BUT: It's possible to pass a short link to the app when pressing on a target. Apple on its own says: "Small Widgets got one single tap target, Medium and Large Widgets got multiple tap targets". OK! Now when you tap on these Targets the app is opening and the Widget is passing that short link to the App. BUT, now my question, where Google says Idk: Can I

SwiftUI @State and .sheet() ios13 vs ios14

[亡魂溺海] 提交于 2021-02-03 12:44:10
问题 Hello I am running into a problem here and I do not have a consistent behavior between my .sheet() view when running on ios13 or ios14 I got a view like this : @State private var label: String = "" @State private var sheetDisplayed = false ///Some code var body: some View { VStack { Button(action: { self.label = "A label" self.isDisplayed = true }) { Text("test") } }.sheet(isPresented: $sheetDisplayed, onDismiss: { self.label = "" }) { Text(self.label) } } On ios 13 this work as expected btn

Incompatible block pointer types sending 'id issue with ViperMcFlurry

风流意气都作罢 提交于 2021-01-29 13:53:48
问题 I was using ViperMcFlurry in my project without a problem for years and with XCode 12 beta 6 it returns me in Incompatible block pointer types sending error. I have tried various ways to fix it but no chance. It returns Incompatible block pointer types sending 'id<RamblerViperModuleOutput> (^)(__strong id<RamblerModuleBetaInput>)' to parameter of type 'RamblerViperModuleLinkBlock' (aka 'id<RamblerViperModuleOutput> (^)(__strong id<RamblerViperModuleInput>)') What I try to do is [[self

Picker in SwiftUI Form turns gray after selecting a value

和自甴很熟 提交于 2021-01-28 07:24:43
问题 For some reason the picker in my SwiftUI Form turns gray after I select a value. My code: Form { Section { TextField("title", text: $title) Picker(selection: $category, label: Text("category")) { ForEach(0..<categories.count) { index in Text(categories[index]).tag(index) } } } } 来源: https://stackoverflow.com/questions/65405759/picker-in-swiftui-form-turns-gray-after-selecting-a-value

UniversalLink stop working on iOS 14 devices

旧城冷巷雨未停 提交于 2021-01-26 09:23:53
问题 I have an app that support the UniversalLink. User click the supported links in the website, will be navigated to the features in the application. But It failed to work on the iOS 14 beta 4. Instead of open the the app, it opens a webpage instread. After research, as I can see from the document here https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_associated-domains Need to update the Service.entitlements to support both iOS 13 and iOS 14 <Key>com

Why can I install my app on iOS 14.1 but not 14.2?

陌路散爱 提交于 2021-01-23 06:53:27
问题 Ever since installing Xcode 12.2, I can't install our app on simulators running iOS 14.2. I downloaded 14.1 and simulators running 14.1 install the app just fine. Tellingly, my coworker does not have this problem even though he's running the same version of Xcode , so a problem with my setup seems likely. I've tried uninstalling Xcode and reinstalling. I've deleted the derivedData folder. Nothing seems to help. The app builds just fine, but when it goes to install on a simulator running iOS

Why can I install my app on iOS 14.1 but not 14.2?

霸气de小男生 提交于 2021-01-23 06:53:07
问题 Ever since installing Xcode 12.2, I can't install our app on simulators running iOS 14.2. I downloaded 14.1 and simulators running 14.1 install the app just fine. Tellingly, my coworker does not have this problem even though he's running the same version of Xcode , so a problem with my setup seems likely. I've tried uninstalling Xcode and reinstalling. I've deleted the derivedData folder. Nothing seems to help. The app builds just fine, but when it goes to install on a simulator running iOS

Problem with gesture in Xcode 12 and iOS 14

喜你入骨 提交于 2021-01-21 13:50:06
问题 I have a problem after upgrading to Xcode 12 and iOS 14. Scenario: I have a Nested UITableView: nestedTableView . Like below class GAllowGestureEventPassTableView: UITableView, UIGestureRecognizerDelegate { var allowGestureEventPassViews: [UIView] = [] func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool { panGestureRecognizer.cancelsTouchesInView = false guard let otherView =

Problem with gesture in Xcode 12 and iOS 14

痴心易碎 提交于 2021-01-21 13:48:55
问题 I have a problem after upgrading to Xcode 12 and iOS 14. Scenario: I have a Nested UITableView: nestedTableView . Like below class GAllowGestureEventPassTableView: UITableView, UIGestureRecognizerDelegate { var allowGestureEventPassViews: [UIView] = [] func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool { panGestureRecognizer.cancelsTouchesInView = false guard let otherView =

Tons of errors due to set arm64 in Excluded Architectures in iOS 14.2 simulators

喜夏-厌秋 提交于 2021-01-20 18:16:07
问题 first of all disclaimer : I'm using Mac Mini with Apple Silicon M1. I have set arm64 in Excluded Architectures due to the known error in Xcode 12: The linked framework 'XXXXXX' is missing one or more architectures required by this target: arm64. Since I changed that the simulator's console (only in iOS 14) prints tons of errors when started, regarding wrong hash simulator: [db] LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={