Questions tagged [ios14]

Use for questions specific to Apple's iOS 14 mobile operating system, released in 2020. General iOS questions should use the [ios] tag.

iOS 14 is the fourteenth version of Apple's iOS mobile operating system. Its beta version was announced at the company's Apple Worldwide Developers Conference (WWDC) on 22 June 2020. The ios14 tag should be used for questions specific to Apple's iOS 14 operating system. General iOS questions should use the tag.

Notable new features

Excerpt from https://www.apple.com/ios/ios-14-preview/:

  • Widgets on the Home Screen
  • Compact calls
  • Picture in Picture
  • Maps: Cycling directions, Electric vehicle routing, Guides
  • Siri: Compact design, Greater knowledge, Web answers, Send audio messages
  • Home: Suggested automations, Home status, Adaptive Lighting, Activity Zones, Face Recognition
  • Safari: Translation, Password monitoring, Privacy Report
  • Car keys and CarPlay: Car keys in Wallet, Share and manage keys, Power reserve, CarPlay wallpaper and new app types
  • AirPods: Spatial audio, Battery notifications, Automatic switching, Headphone Accommodations, Audio Sharing for Apple TV
  • App Clips
  • Privacy: Privacy information on the App Store, Recording indicator, Upgrade to Sign in with Apple, Approximate location
  • ARKit 4
  • Set default email and browser apps

Release notes: https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-14-beta-release-notes

1139 questions
19
votes
6 answers

Xcode 12, How to suppress "Double-quoted include in framework header" warnings throughout entire project

With Xcode 12 there is a new default warning which will throw a warning anywhere you #import or #include with "quotes.h" instead of . Warning: "Double-quoted include in framework header" How do you turn off this warning for the entire…
Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
19
votes
1 answer

Date Picker looks squashed as input of a Text Field

I have a UITextField that is using UIDatePicker as an input. I set the Date Picker's style to be .inline, but the result is not what I expected As you can see, the hour selector in the Date Picker looks squashed. This is my code: class…
19
votes
2 answers

UniversalLink is not working on iOS 14 devices, but works well on simulator

The following solution can support universalLink on simulator. 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…
Jin
  • 665
  • 1
  • 7
  • 15
19
votes
2 answers

iOS 14 Widgets: Widget not rendering when list is used

I'm experimenting with iOS 14 widgets and have a weird issue. My widget is not loading when I'm using a List in the widget view. If I'm using HStack, VStack etc. all works ok. Here is some simple code for the sake of example: struct WidgetView: View…
chnski
  • 557
  • 1
  • 4
  • 20
19
votes
5 answers

Xcode 12 / iOS14 Widget "@main and must provide a main static function" error

Using Xcode 12 trying to create Widget app extension to my project. Upon creating new Widget target I am getting the following error: 'Widget' is annotated with @main and must provide a main static function of type () -> Void or () throws -> Void.
Vlad
  • 5,727
  • 3
  • 38
  • 59
18
votes
2 answers

Fetch data from CoreData for iOS 14 widget

I want to display data fetched from Core Data in a widget. But @FetchRequest doesn’t work on widgets. As I understand, we have to create an app group and make a shared persistent container. What I want to know is how to read (fetch) data on widgets…
umayanga
  • 2,254
  • 3
  • 15
  • 26
18
votes
3 answers

Detect app launch from WidgetKit widget extension

Tapping a WidgetKit widget automatically launches its parent application. How can I detect if my application was launched from its WidgetKit widget extension? I'm unable to find any documentation on capturing this in the applications AppDelegate…
Daniel Storm
  • 18,301
  • 9
  • 84
  • 152
18
votes
2 answers

SwiftUI Sidebar doesn't remember state

I Have this app that uses the new sidebar introduced in iOS14 for iPad os but I can't figure out why it doesn't remember the state when its hidden This is the sidebar struct import SwiftUI struct Sidebar: View { …
Luca
  • 914
  • 9
  • 18
18
votes
3 answers

How to reload timeline of iOS 14 widget from notification response?

I'm making a home screen widget for iOS 14 using the new WidgetKit and I want my widget timeline to refresh when the user responds to a notification. This is what my code looks like currently: func userNotificationCenter(_ center:…
Sarvesh
  • 401
  • 1
  • 3
  • 8
18
votes
4 answers

How to trigger UIContextMenuInteraction context menu programmatically?

I have set up an UIButton as the rightBarButtonItem in an UIViewController inside an UINavigationController and associated an iOS13 context menu to it. Long pressing the button shows the context menu as expected. Is there a way to show the context…
mmklug
  • 2,252
  • 2
  • 16
  • 31
17
votes
4 answers

iOS 14, lipo error while creating library for both device and simulator

We have been using lipo command to create a framework which works on both device and simulator when integrated in other project. following are the build commands used to generate device and simulator builds xcodebuild -target SampleSDK…
Rajesh Rs
  • 1,301
  • 5
  • 24
  • 48
17
votes
7 answers

Fixing the size of a custom font in SwiftUI iOS 13+ when ignoring Dynamic Type

In an app I'm developing (SwiftUI for iOS13 and above), I have imported a custom font, and I load the font using the following method": func getDigitalXFontOfSize(size s : CGFloat) -> Font { return Font.custom("DigitalX", size: s); } I…
Tyler Durden
  • 575
  • 7
  • 23
17
votes
4 answers

List or OutlineGroup expanded by default in SwiftUI

With List or OutlineGroup in SwiftUI how to make some (or all) of their branches expanded by default when creating the view. This seems to be possible with DisclosureGroup with a binding. This could be useful for restoring state or customizing the…
João Colaço
  • 1,202
  • 1
  • 14
  • 38
16
votes
9 answers

iOS 14 get user consent with Facebook SDK

I'm not new to iOS development but this is my first time dealing with Facebook SDK. I've been following the FB guide to set up event in my app (installed SDK Swift package, added FBSDKCoreKit methods to AppDelegate), up until the very last…
Denys Triasunov
  • 539
  • 1
  • 4
  • 24
15
votes
2 answers

SwiftUI iOS14 - Disable keyboard avoidance

Is there a way to disable the native keyboard avoidance on iOS14? There is no keyboard avoidance in iOS13, so I want to implement my own, but when I do the native one on iOS14 is still active, so both my implementation and the native one run at the…
Tropicano
  • 281
  • 2
  • 15