Skip to content

Commit

Permalink
Use void parameter in watchOS color function
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlokhorst committed Nov 8, 2020
1 parent 109b55b commit b6ceb71
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Sources/RswiftCore/Generators/ColorStructGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ fileprivate func watchOSColorFunction(for name: String, at externalAccessLevel:
name: structName,
generics: nil,
parameters: [
Function.Parameter(
name: "compatibleWith",
localName: "traitCollection",
type: Type._Any.asOptional(), // We're doing this because UITraitCollection is not present on WatchOS
defaultValue: "nil"
)
Function.Parameter(name: "_", type: Type._Void, defaultValue: "()")
],
doesThrow: false,
returnType: Type._UIColor.asOptional(),
Expand Down

0 comments on commit b6ceb71

Please sign in to comment.