Archived
Fixed one source of the large title jumping bug when refreshing, made collectionviews fit to insets as to not cut into the notch on iPhone X and successors
This commit is contained in:
@@ -14,7 +14,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
||||
|
||||
var window: UIWindow?
|
||||
|
||||
|
||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||||
|
||||
FirebaseApp.configure()
|
||||
@@ -48,7 +47,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
||||
func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String) {
|
||||
print("Firebase registration token: \(fcmToken)")
|
||||
|
||||
let dataDict:[String: String] = ["token": fcmToken]
|
||||
let dataDict: [String: String] = ["token": fcmToken]
|
||||
NotificationCenter.default.post(name: Notification.Name("FCMToken"), object: nil, userInfo: dataDict)
|
||||
// TODO: If necessary send token to application server.
|
||||
// Note: This callback is fired at each app startup and whenever a new token is generated.
|
||||
|
||||
Reference in New Issue
Block a user