Skip to content

Commit

Permalink
Replaces deprecated @_functionBuilder by @resultBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
s4cha committed May 23, 2022
1 parent 88be6f0 commit cfb1a1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Stevia/Stevia+Hierarchy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if canImport(UIKit)
import UIKit

@_functionBuilder public struct SubviewsBuilder {
@resultBuilder public struct SubviewsBuilder {
public static func buildBlock(_ content: UIView...) -> [UIView] {
return content
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Stevia/Stevia+Stacks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct FlexibleSpace {
public init() {}
}

@_functionBuilder public struct SteviaLayoutBuilder {
@resultBuilder public struct SteviaLayoutBuilder {
public static func buildBlock(_ content: SteviaLayoutItem...) -> [SteviaLayoutItem] {
return content
}
Expand Down

0 comments on commit cfb1a1d

Please sign in to comment.