Resources/MainUI/Settings panels/FiltersViewController.swift
Parentheses content should not end with whitespace Open
Open
parameters: [kCIInputImageKey: ciImage, kCIInputAmountKey: PrefsVideos.globalVibrance] )?.outputImage {
- Exclude checks
Closure is the function's final argument and may be passed as a trailing closure instead Open
Open
let videos = VideoList.instance.currentRotation().filter({ $0.isAvailableOffline && !$0.isHDR() }).shuffled()
- Read upRead up
- Exclude checks
trailing-closure
Closures that are the last argument of a function should be passed into the function using trailing closure syntax.
Preferred
reversed = names.sort { s1, s2 in return s1 > s2 }
Not Preferred
reversed = names.sort({ s1, s2 in return s1 > s2 })