Skip to content

Commit

Permalink
Disable TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
r-dent committed Feb 19, 2024
1 parent 2c7ee52 commit 39b271a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/StreamDeckKit/Extensions/StreamDeck+SwiftUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import SwiftUI
import UIKit

// NOTE: This whole extension may be moved out of the SDK and to the Documentation.
private extension UIViewController {

func renderAsImage(of size: CGSize) -> UIImage? {
Expand All @@ -18,7 +19,7 @@ private extension UIViewController {
view.setNeedsLayout()
view.layoutIfNeeded()

let renderer = UIGraphicsImageRenderer( // TODO: Cache renderer!
let renderer = UIGraphicsImageRenderer( // TODO: Cache renderer! // swiftlint:disable:this todo
size: size,
format: UIGraphicsImageRendererFormat(for: .init(displayScale: 1))
)
Expand Down

0 comments on commit 39b271a

Please sign in to comment.