Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Added full support for 4.0-inch screens
Browse files Browse the repository at this point in the history
Also added in this commit:
• Some new extensions to UIDevice so I can do stuff cleaner, like
• Vibration for pre-6s devices when switches, scale or vault pressed
• Counters for cubes placed in the switches, the scale, and the home
alliance's vault.
  • Loading branch information
dropbear32 committed Mar 28, 2018
1 parent 2b452da commit 19cafdf
Show file tree
Hide file tree
Showing 6 changed files with 225 additions and 43 deletions.
8 changes: 7 additions & 1 deletion scouting1072/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ import GoogleSignIn

extension Notification.Name {
static let userSignedIn = Notification.Name("userSignedIn")
static let newCubeHome = Notification.Name("newCubeHome")
static let newCubeScale = Notification.Name("newCubeScale")
static let newCubeAway = Notification.Name("newCubeAway")
static let newCubeVault = Notification.Name("newCubeVault")
}

var user : GIDGoogleUser? {
didSet {
NotificationCenter.default.post(Notification(name: .userSignedIn))
if user != nil {
NotificationCenter.default.post(Notification(name: .userSignedIn))
}
}
}

Expand Down
Loading

0 comments on commit 19cafdf

Please sign in to comment.