Fixes warnings
This commit is contained in:
parent
4939a7da25
commit
52c15eeb60
@ -149,7 +149,7 @@ extension GamesViewController
|
|||||||
{
|
{
|
||||||
guard let identifier = segue.identifier, identifier == "embedPageViewController" else { return }
|
guard let identifier = segue.identifier, identifier == "embedPageViewController" else { return }
|
||||||
|
|
||||||
self.pageViewController = segue.destination as! UIPageViewController
|
self.pageViewController = segue.destination as? UIPageViewController
|
||||||
self.pageViewController.dataSource = self
|
self.pageViewController.dataSource = self
|
||||||
self.pageViewController.delegate = self
|
self.pageViewController.delegate = self
|
||||||
self.pageViewController.view.isHidden = true
|
self.pageViewController.view.isHidden = true
|
||||||
|
|||||||
@ -79,7 +79,7 @@ class LaunchViewController: UIViewController
|
|||||||
{
|
{
|
||||||
guard segue.identifier == "embedGameViewController" else { return }
|
guard segue.identifier == "embedGameViewController" else { return }
|
||||||
|
|
||||||
self.gameViewController = segue.destination as! GameViewController
|
self.gameViewController = segue.destination as? GameViewController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -159,9 +159,9 @@ extension CheatTextView: NSLayoutManagerDelegate
|
|||||||
layoutManager.setGlyphs(glyphBuffer, properties: propertyBuffer, characterIndexes: characterBuffer, font: aFont, forGlyphRange: NSRange(location: glyphRange.location, length: glyphCount + offset))
|
layoutManager.setGlyphs(glyphBuffer, properties: propertyBuffer, characterIndexes: characterBuffer, font: aFont, forGlyphRange: NSRange(location: glyphRange.location, length: glyphCount + offset))
|
||||||
|
|
||||||
// Clean up memory
|
// Clean up memory
|
||||||
characterBuffer.deallocate(capacity: bufferSize)
|
characterBuffer.deallocate()
|
||||||
propertyBuffer.deallocate(capacity: bufferSize)
|
propertyBuffer.deallocate()
|
||||||
glyphBuffer.deallocate(capacity: bufferSize)
|
glyphBuffer.deallocate()
|
||||||
|
|
||||||
// Return total number of glyphs
|
// Return total number of glyphs
|
||||||
return glyphCount + offset
|
return glyphCount + offset
|
||||||
|
|||||||
@ -80,7 +80,7 @@ extension PauseViewController
|
|||||||
switch identifier
|
switch identifier
|
||||||
{
|
{
|
||||||
case "embedNavigationController":
|
case "embedNavigationController":
|
||||||
self.pauseNavigationController = segue.destination as! UINavigationController
|
self.pauseNavigationController = segue.destination as? UINavigationController
|
||||||
self.pauseNavigationController.delegate = self
|
self.pauseNavigationController.delegate = self
|
||||||
self.pauseNavigationController.navigationBar.tintColor = UIColor.deltaPurple
|
self.pauseNavigationController.navigationBar.tintColor = UIColor.deltaPurple
|
||||||
self.pauseNavigationController.view.backgroundColor = UIColor.clear
|
self.pauseNavigationController.view.backgroundColor = UIColor.clear
|
||||||
|
|||||||
@ -63,7 +63,7 @@ class PausePresentationController: UIPresentationController
|
|||||||
|
|
||||||
super.init(presentedViewController: presentedViewController, presenting: presentingViewController)
|
super.init(presentedViewController: presentedViewController, presenting: presentingViewController)
|
||||||
|
|
||||||
self.contentView = Bundle.main.loadNibNamed("PausePresentationControllerContentView", owner: self, options: nil)?.first as! UIView
|
self.contentView = Bundle.main.loadNibNamed("PausePresentationControllerContentView", owner: self, options: nil)?.first as? UIView
|
||||||
}
|
}
|
||||||
|
|
||||||
override func presentationTransitionWillBegin()
|
override func presentationTransitionWillBegin()
|
||||||
|
|||||||
@ -86,9 +86,9 @@ extension ControllerInputsViewController
|
|||||||
|
|
||||||
switch identifier
|
switch identifier
|
||||||
{
|
{
|
||||||
case "embedGameViewController": self.gameViewController = segue.destination as! DeltaCore.GameViewController
|
case "embedGameViewController": self.gameViewController = segue.destination as? DeltaCore.GameViewController
|
||||||
case "embedActionsMenuViewController":
|
case "embedActionsMenuViewController":
|
||||||
self.actionsMenuViewController = segue.destination as! GridMenuViewController
|
self.actionsMenuViewController = segue.destination as? GridMenuViewController
|
||||||
self.prepareActionsMenuViewController()
|
self.prepareActionsMenuViewController()
|
||||||
|
|
||||||
case "cancelControllerInputs": break
|
case "cancelControllerInputs": break
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user