-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26aed2c
commit c0e68f1
Showing
13 changed files
with
783 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Bundle+.swift | ||
// GridNotes | ||
// | ||
// Created by Jason Pepas on 1/17/21. | ||
// | ||
|
||
import UIKit | ||
|
||
|
||
extension Bundle { | ||
var marketingVersion: String { | ||
return infoDictionary!["CFBundleShortVersionString"] as! String | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// CGRect+.swift | ||
// GridNotes | ||
// | ||
// Created by Jason Pepas on 1/17/21. | ||
// | ||
|
||
import UIKit | ||
|
||
|
||
extension CGRect { | ||
static func square(dimension: CGFloat) -> CGRect { | ||
return CGRect(x: 0, y: 0, width: dimension, height: dimension) | ||
} | ||
|
||
func centered(within containingRect: CGRect) -> CGRect { | ||
var centeredRect = self | ||
centeredRect.origin.x = (containingRect.width - width) / 2 | ||
centeredRect.origin.y = (containingRect.height - height) / 2 | ||
return centeredRect | ||
} | ||
} |
Oops, something went wrong.