-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
9 changed files
with
150 additions
and
44 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
20 changes: 20 additions & 0 deletions
20
ShotbotCore/Sources/HomeFeature/HomeView/NotificationCenterProtocol.swift
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,20 @@ | ||
// | ||
// NotificationCenterProtocol.swift | ||
// ShotbotCore | ||
// | ||
// Created by Richard Witherspoon on 8/4/24. | ||
// | ||
|
||
import Foundation | ||
|
||
public protocol NotificationCenterProtocol { | ||
func publisher( | ||
for name: Notification.Name | ||
) -> NotificationCenter.Publisher | ||
} | ||
|
||
extension NotificationCenter: NotificationCenterProtocol { | ||
public func publisher(for name: Notification.Name) -> Publisher { | ||
publisher(for: name, object: nil) | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
ShotbotCore/Sources/Models/Extensions/UIGraphicsImageRendererFormat+Extension.swift
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,18 @@ | ||
// | ||
// UIGraphicsImageRendererFormat+Extension.swift | ||
// ShotbotCore | ||
// | ||
// Created by Richard Witherspoon on 8/4/24. | ||
// | ||
|
||
import UIKit | ||
import AVFoundation | ||
|
||
extension UIGraphicsImageRendererFormat { | ||
convenience init(scale: Int) { | ||
self.init() | ||
self.scale = 1 | ||
} | ||
|
||
static let singleScale = UIGraphicsImageRendererFormat(scale: 1) | ||
} |
Oops, something went wrong.