ios13

Firebase Push notifications don't work on iOS 13

安稳与你 提交于 2020-04-10 03:52:09
问题 Firebase push notifications aren't working on iOS 13. But works fine in iOS 12.4. Any solution? Edited: 04.10.19 Silent push notification not working iOS 13 回答1: Ref link here Example Firebase push body { "topic": "topic_test", "message": { "data": { "key": "some_value" }, "notification": { "body": "description ~", "title": "title !" } }, "options": { "mutableContent": true, "contentAvailable": true, "apnsPushType": "background" } } 回答2: Quick Fix Solution: If you are facing issue to receive

Find all available images for Image(systemName:) in SwiftUI

送分小仙女□ 提交于 2020-04-07 12:43:20
问题 Where can I find all the system images that are available in the initializer Image(systemName:) ? I've only been using "chevron" and "star.fill" so far, as discovered in Apple's SwiftUI tutorial series. However, I haven't been able to find a full list of icons in any official documentation. 回答1: These icons are called SF Symbols. There are over 1,500 symbols that can be used in apps running in iOS 13 and later. To browse the full set of symbols, download the SF Symbols app. For more info

Turn on system dark mode from app - Swift

杀马特。学长 韩版系。学妹 提交于 2020-03-26 02:41:48
问题 I have made my own system of dark mode on my app using Notifications and I have a switch that changes between dark mode on and off. My first question: How do I turn on system dark mode, where the whole phone becomes dark mode as well if it is updated to iOS 13 by flipping the switch. My second question: How do I check to see if system dark mode is enabled so that I can make it where my dark mode is enabled whenever the iOS system dark mode is enabled? 回答1: First question: Impossible at this

Turn on system dark mode from app - Swift

我的未来我决定 提交于 2020-03-26 02:41:12
问题 I have made my own system of dark mode on my app using Notifications and I have a switch that changes between dark mode on and off. My first question: How do I turn on system dark mode, where the whole phone becomes dark mode as well if it is updated to iOS 13 by flipping the switch. My second question: How do I check to see if system dark mode is enabled so that I can make it where my dark mode is enabled whenever the iOS system dark mode is enabled? 回答1: First question: Impossible at this

How to launch new project without a storyboard >= iOS 13 in Xcode 11?

纵然是瞬间 提交于 2020-03-25 22:36:36
问题 Xcode 11 with iOS 13 now launches with a slightly different setup from before, moving many functions from the AppDelegate.m file into a new file called SceneDelegate.m - deleting the Main.storyboard and setting the root view controller in AppDelegate is no longer an option, leading to the error below: -[AppDelegate window]: unrecognized selector sent to instance How to continue building new projects without storyboard? 回答1: Check this post: Xcode 11.3 | Remove Storyboard from project Step 1:

SwiftUI @EnvironmentObject error: may be missing as an ancestor of this view

↘锁芯ラ 提交于 2020-03-25 18:57:48
问题 my first view can get all the data from API request, then opened second view to change the API request data, it crashed. below is the error Fatal error: No ObservableObject of type NetworkManager found. A View.environmentObject(_:) for NetworkManager may be missing as an ancestor of this view.: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/Monoceros_Sim/Monoceros-39.3/Core/EnvironmentObject.swift, line 55 2019-11-07 12:00:01.961425-0800 EarthQuake[73703:5913116] Fatal error: No

[NSPlaceholderString initWithString:]: nil argument' on iOS13

穿精又带淫゛_ 提交于 2020-03-21 20:33:17
问题 Heres my situation i have a UICollectionView nested inside a UITableVIew the table view scrolls vertically and the collection view scrolls horizontally inside the table view. i have made the tableview as the delegate for the collection view here a code snippet: i know this code doesnt make sense cause i have removed a lot of stuff from it i just shared it for you guys to see how i set up the tableview and the collectionview in case its helpful class HomeViewController: UIViewController

How to create custom slider by using SwiftUI?

穿精又带淫゛_ 提交于 2020-03-19 17:55:03
问题 I am able to create a Slider by using SwiftUI but I am not able to change the style of the slider as shown in the image(below). Problem: I am not able to find any option in SwiftUI to change the slider style. Note: I want to create this by using SwiftUI only. I already created this slider in Swift by using "https://github.com/daprice/iOS-Tactile-Slider" I have tried following but it's not the solution : 1. Slider(value: .constant(0.3)).accentColor(Color.white) 2. Slider(value: $age, in: 18..

How to create custom slider by using SwiftUI?

对着背影说爱祢 提交于 2020-03-19 17:47:10
问题 I am able to create a Slider by using SwiftUI but I am not able to change the style of the slider as shown in the image(below). Problem: I am not able to find any option in SwiftUI to change the slider style. Note: I want to create this by using SwiftUI only. I already created this slider in Swift by using "https://github.com/daprice/iOS-Tactile-Slider" I have tried following but it's not the solution : 1. Slider(value: .constant(0.3)).accentColor(Color.white) 2. Slider(value: $age, in: 18..

Reading files from external storage in iOS 13

不问归期 提交于 2020-03-19 05:04:37
问题 I have an iOS app that is trying to read files from an external storage device without importing them into the App's sandbox. I have followed Apple's documentations outlined here to do this -- Providing Access to Directories I'm able to retrieve the selected directory ( which is on an external storage device connected via the Lightning port ) and enumerate the files inside the directory. However, when I try to do something with those files as per the recommended pattern, I get a failure and