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
8
votes
1 answer

How to use PHAuthorizationStatusLimited in iOS 14

In order to fetch photo's creationDate, so use requestAuthorizationForAccessLevel before show PHPickerViewController. PHAccessLevel level = PHAccessLevelReadWrite; [PHPhotoLibrary requestAuthorizationForAccessLevel:level…
Mr.Laity
  • 133
  • 1
  • 8
8
votes
2 answers

WidgetBundle return widgets based on some logic

I have several iOS14 Home screen Widgets ready for my app and return them all in WidgetBundle like this: @main struct WidgetsBudle: WidgetBundle { @WidgetBundleBuilder var body: some Widget { Widget1() Widget2() …
sabius
  • 704
  • 7
  • 10
8
votes
3 answers

Checking user location permission status on iOS 14

So I wanted to check if I have access to the user location on iOS14 or not & I found this code but XCode(12) yells at me with this: 'authorizationStatus()' was deprecated in iOS 14.0 And here is the code: func hasLocationPermission() -> Bool { …
Ahmadreza
  • 6,950
  • 5
  • 50
  • 69
8
votes
2 answers

Right aligning a .bottomBar ToolbarItem in SwiftUI for iOS 14

I'd like to add a "compose" button onto the .bottomBar of a .toolbar in my NavigationView. Adding a Spacer() simply almost center aligns the item: struct HomeView: View { var body: some View { NavigationView { Text("Hello,…
Thor Correia
  • 1,159
  • 1
  • 12
  • 20
8
votes
1 answer

Uniform cell size in SwiftUI LazyGrid

I am implementing a LazyVGrid but would like all the cells to optimally have both the same vertical and horizontal dimensions. Currently my view looks like this: With the addition of shadows, it is very important that the cell backgrounds are…
Acoop
  • 2,586
  • 2
  • 23
  • 39
8
votes
2 answers

iOS 14 Beta check PHAsset permissions for .limited access level

in iOS 14 beta, is there a way to check if the app has permissions to load a PHAsset image before trying to load it with PHImageManager.requestImage? This is for PHAuthorizationStatus.limited - when I fetch all assets in a PHAssetCollection, it…
kzamanov
  • 81
  • 6
8
votes
3 answers

adding a MapMarker to MapKit in swiftUI 2

I am trying to use the new Mapkit SwiftUI view and I am able to show a map with a certain region but I can't figure how to show a Map Marker. This is what I have: import SwiftUI import MapKit struct ContentView: View { @State private var region…
mtz_federico
  • 107
  • 1
  • 9
8
votes
1 answer

Widget not getting updated even when UserDefaults are synchronized

I am using XCode 12 beta 2 (iOS 14 Sim) to pass data from my app to the widget using AppContainer. I am using the below code to save data (here String) to app container. let userDefaults = UserDefaults(suiteName: "group.abc.WidgetDemo") …
Abhishek Bedi
  • 5,205
  • 2
  • 36
  • 62
8
votes
5 answers

iOS 14: Allow Location Access | Always menu not found

I tried to run my project in Xcode 12 beta 2 with iOS 14 simulator. I observed "Always" menu is not found in Allow Location Access Setting screen. I have given the followings…
Sridhar
  • 2,228
  • 10
  • 48
  • 79
7
votes
4 answers

How to show pull down button menu in IOS 14 swift

I created a pull down button like below @IBOutlet weak var pullDownButton: UIButton! Then I called a method from viewDidLoad() to configure pull down menu reference func setupMenu() { let add = UIAction(title: "Add", image: UIImage(systemName:…
SHAH MD IMRAN HOSSAIN
  • 2,558
  • 2
  • 25
  • 44
7
votes
2 answers

Getting video data nil when user tries to retrieve video using PHPickerViewController with selected photos permission in IOS 14, swift 5

In iOS 14 Apple has introduced PHPickerViewController where user has access to provide permission to all photo library videos or selected videos. In first case when we provide permission to all videos, we are able to get videos from photo library…
Heena
  • 79
  • 2
7
votes
1 answer

iOS 14 present UIMenu from UIView

iOS 14's UIMenu seems to be able to be presented from any UIBarButtonItem or UIButton / UIControl, but I how would I present it from a generic UIView?
Joel Fischer
  • 6,521
  • 5
  • 35
  • 46
7
votes
0 answers

Configure selection limit on Limited Library Picker

Considering user privacy I would like to implement a Limited Library Picker (introduced with iOS 14). Our app handles condition assessment of technical components by allowing the user to attach exactly one photo per component. For this we've been…
matthau
  • 71
  • 3
7
votes
3 answers

SwiftUI PageTabView in iOS14.2 will Recall ChildView onAppear method Many times

I use TabView PageTabViewStyle with SwiftUI to display a pageview, when I swipe this TabView I find child view will Recall onAppear method Many times, Can someone tell me why? This is my code import SwiftUI struct Pageview: View { …
wanbo
  • 868
  • 9
  • 24
7
votes
0 answers

How do I fetch HomeKit values for usage in iOS 14 Widgets?

I am writing a HomeKit app that successfully shows live data from my supported accessories in-app. I can read single values (HMCharacteristic.readValue) or use notifications to stay updated (HMCharacteristic.enableNotification). Now I want to…
theMomax
  • 919
  • 7
  • 8