diff --git a/Classes/Controllers/BaseApp/LifeCycle.swift b/Classes/Controllers/BaseApp/LifeCycle.swift
index 2b65f72f..89515491 100644
--- a/Classes/Controllers/BaseApp/LifeCycle.swift
+++ b/Classes/Controllers/BaseApp/LifeCycle.swift
@@ -10,7 +10,7 @@ import UIKit
public var Lifecycle: LifecycleBuilderProtocol { LifecycleBuilder() }
-public protocol LifecycleBuilderProtocol: class, AppBuilderContent {
+public protocol LifecycleBuilderProtocol: AnyObject, AppBuilderContent {
func didFinishLaunching(_ handler: @escaping () -> Void) -> Self
func willFinishLaunching(_ handler: @escaping (_ launchOptions: [UIApplication.LaunchOptionsKey: Any]) -> Bool) -> Self
func didFinishLaunching(_ handler: @escaping (_ launchOptions: [UIApplication.LaunchOptionsKey: Any]) -> Bool) -> Self
diff --git a/Classes/Controllers/MacApp.swift b/Classes/Controllers/MacApp.swift
index 90183bf3..94b35aba 100644
--- a/Classes/Controllers/MacApp.swift
+++ b/Classes/Controllers/MacApp.swift
@@ -144,7 +144,7 @@ open class App: NSApplication, NSApplicationDelegate {
// let windowsBuilderContent: WindowsBuilderItem
//}
//
-//@_functionBuilder public struct WindowsBuilder {
+//@resultBuilder public struct WindowsBuilder {
// public typealias Block = () -> WindowsBuilderContent
//
// public static func buildBlock() -> WindowsBuilderContent {
@@ -188,7 +188,7 @@ struct _AppContent: AppBuilderContent {
let appBuilderContent: AppBuilderItem
}
-@_functionBuilder public struct AppBuilder {
+@resultBuilder public struct AppBuilder {
public typealias Block = () -> AppBuilderContent
public static func buildBlock() -> AppBuilderContent {
diff --git a/Classes/Controllers/Menu.swift b/Classes/Controllers/Menu.swift
index f40f3f37..f51ff75b 100644
--- a/Classes/Controllers/Menu.swift
+++ b/Classes/Controllers/Menu.swift
@@ -129,7 +129,7 @@ struct _MenuContent: MenuBuilderContent {
let menuBuilderContent: MenuBuilderItem
}
-@_functionBuilder public struct MenuBuilder {
+@resultBuilder public struct MenuBuilder {
public typealias Block = () -> MenuBuilderContent
public static func buildBlock() -> MenuBuilderContent {
diff --git a/Classes/Objects/ParagraphStyle.swift b/Classes/Objects/ParagraphStyle.swift
index d8090389..a23fc63e 100644
--- a/Classes/Objects/ParagraphStyle.swift
+++ b/Classes/Objects/ParagraphStyle.swift
@@ -11,7 +11,7 @@ import AppKit
import UIKit
#endif
-protocol ParagraphStyleDelegate: class {
+protocol ParagraphStyleDelegate: AnyObject {
func onParagraphUpdate(_ p: ParagraphStyle)
}
diff --git a/Classes/Protocols/Alternateable.swift b/Classes/Protocols/Alternateable.swift
index 3b1ed460..1c957aa5 100644
--- a/Classes/Protocols/Alternateable.swift
+++ b/Classes/Protocols/Alternateable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Alternateable: class {
+public protocol Alternateable: AnyObject {
@discardableResult
func alternate() -> Self
diff --git a/Classes/Protocols/AnyScene.swift b/Classes/Protocols/AnyScene.swift
index f4105809..b74d2821 100644
--- a/Classes/Protocols/AnyScene.swift
+++ b/Classes/Protocols/AnyScene.swift
@@ -8,7 +8,7 @@
#if !os(macOS)
import UIKit
-public protocol AnyScene: class {
+public protocol AnyScene: AnyObject {
var persistentIdentifier: String { get }
var stateRestorationActivity: NSUserActivity? { get }
var userInfo: [String : Any]? { get }
diff --git a/Classes/Protocols/ArrowPositionable.swift b/Classes/Protocols/ArrowPositionable.swift
index 527f8d15..bb775b12 100644
--- a/Classes/Protocols/ArrowPositionable.swift
+++ b/Classes/Protocols/ArrowPositionable.swift
@@ -1,7 +1,7 @@
#if os(macOS)
import AppKit
-public protocol ArrowPositionable: class {
+public protocol ArrowPositionable: AnyObject {
@discardableResult
func arrowPosition(_ value: NSPopUpButton.ArrowPosition) -> Self
diff --git a/Classes/Protocols/BackgroundColorable.swift b/Classes/Protocols/BackgroundColorable.swift
index 550dc2b1..f647c172 100644
--- a/Classes/Protocols/BackgroundColorable.swift
+++ b/Classes/Protocols/BackgroundColorable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol BackgroundColorable: class {
+public protocol BackgroundColorable: AnyObject {
@discardableResult
func background(_ color: UColor) -> Self
diff --git a/Classes/Protocols/BezelStyleable.swift b/Classes/Protocols/BezelStyleable.swift
index 08bffa42..de77d1ed 100644
--- a/Classes/Protocols/BezelStyleable.swift
+++ b/Classes/Protocols/BezelStyleable.swift
@@ -1,7 +1,7 @@
#if os(macOS)
import Cocoa
-public protocol BezelStyleable: class {
+public protocol BezelStyleable: AnyObject {
@discardableResult
func style(_ value: NSButton.BezelStyle) -> Self
diff --git a/Classes/Protocols/Bezeledable.swift b/Classes/Protocols/Bezeledable.swift
index 1e961e5b..646b9e0b 100644
--- a/Classes/Protocols/Bezeledable.swift
+++ b/Classes/Protocols/Bezeledable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Bezeledable: class {
+public protocol Bezeledable: AnyObject {
@discardableResult
func bezeled() -> Self
diff --git a/Classes/Protocols/Borderedable.swift b/Classes/Protocols/Borderedable.swift
index 56b2a5e6..7faf818b 100644
--- a/Classes/Protocols/Borderedable.swift
+++ b/Classes/Protocols/Borderedable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Borderedable: class {
+public protocol Borderedable: AnyObject {
@discardableResult
func bordered() -> Self
diff --git a/Classes/Protocols/Cellable.swift b/Classes/Protocols/Cellable.swift
index 7b2a78c8..698ac0d2 100644
--- a/Classes/Protocols/Cellable.swift
+++ b/Classes/Protocols/Cellable.swift
@@ -1,4 +1,4 @@
-public protocol Cellable: class {}
+public protocol Cellable: AnyObject {}
extension Cellable {
public static var reuseIdentifier: String { String(describing: self) }
diff --git a/Classes/Protocols/Colorable.swift b/Classes/Protocols/Colorable.swift
index 345f48f5..55e8987e 100644
--- a/Classes/Protocols/Colorable.swift
+++ b/Classes/Protocols/Colorable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Colorable: class {
+public protocol Colorable: AnyObject {
@discardableResult
func color(_ color: UColor) -> Self
diff --git a/Classes/Protocols/Continuousable.swift b/Classes/Protocols/Continuousable.swift
index 0676ad01..52128916 100644
--- a/Classes/Protocols/Continuousable.swift
+++ b/Classes/Protocols/Continuousable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Continuousable: class {
+public protocol Continuousable: AnyObject {
@discardableResult
func continuous() -> Self
diff --git a/Classes/Protocols/ControlStateable.swift b/Classes/Protocols/ControlStateable.swift
index 97d481da..4bb7374e 100644
--- a/Classes/Protocols/ControlStateable.swift
+++ b/Classes/Protocols/ControlStateable.swift
@@ -1,7 +1,7 @@
#if os(macOS)
import Cocoa
-public protocol ControlStateable: class {
+public protocol ControlStateable: AnyObject {
@discardableResult
func state(_ value: NSControl.StateValue) -> Self
diff --git a/Classes/Protocols/DeclarativeProtocol.swift b/Classes/Protocols/DeclarativeProtocol.swift
index c85fd3e4..92f29909 100644
--- a/Classes/Protocols/DeclarativeProtocol.swift
+++ b/Classes/Protocols/DeclarativeProtocol.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol DeclarativeProtocol: class {
+public protocol DeclarativeProtocol: AnyObject {
associatedtype V: BaseView, DeclarativeProtocol = Self
var declarativeView: V { get }
diff --git a/Classes/Protocols/EditableStackView.swift b/Classes/Protocols/EditableStackView.swift
index 20271938..41515655 100644
--- a/Classes/Protocols/EditableStackView.swift
+++ b/Classes/Protocols/EditableStackView.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-protocol EditableStackView: class {
+protocol EditableStackView: AnyObject {
var arrangedSubviews: [BaseView] { get }
func addArrangedSubview(_ view: BaseView)
func add(arrangedView: BaseView, at index: Int)
diff --git a/Classes/Protocols/Editableable.swift b/Classes/Protocols/Editableable.swift
index db6084f9..4fb9eb94 100644
--- a/Classes/Protocols/Editableable.swift
+++ b/Classes/Protocols/Editableable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Editableable: class {
+public protocol Editableable: AnyObject {
@discardableResult
func editable() -> Self
diff --git a/Classes/Protocols/Enableable.swift b/Classes/Protocols/Enableable.swift
index 213617df..cd807ab3 100644
--- a/Classes/Protocols/Enableable.swift
+++ b/Classes/Protocols/Enableable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Enableable: class {
+public protocol Enableable: AnyObject {
@discardableResult
func enabled() -> Self
diff --git a/Classes/Protocols/FirstResponderRefusable.swift b/Classes/Protocols/FirstResponderRefusable.swift
index f4caea7a..5ef352fa 100644
--- a/Classes/Protocols/FirstResponderRefusable.swift
+++ b/Classes/Protocols/FirstResponderRefusable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol FirstResponderRefusable: class {
+public protocol FirstResponderRefusable: AnyObject {
@discardableResult
func refuseFirstResponder() -> Self
diff --git a/Classes/Protocols/FocusRingTypeable.swift b/Classes/Protocols/FocusRingTypeable.swift
index 9d5ef62e..f7ddef6e 100644
--- a/Classes/Protocols/FocusRingTypeable.swift
+++ b/Classes/Protocols/FocusRingTypeable.swift
@@ -1,7 +1,7 @@
#if os(macOS)
import AppKit
-public protocol FocusRingTypeable: class {
+public protocol FocusRingTypeable: AnyObject {
@discardableResult
func focusRingType(_ value: NSFocusRingType) -> Self
diff --git a/Classes/Protocols/Fontable.swift b/Classes/Protocols/Fontable.swift
index 54ac9d68..02d87b2b 100644
--- a/Classes/Protocols/Fontable.swift
+++ b/Classes/Protocols/Fontable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Fontable: class {
+public protocol Fontable: AnyObject {
@discardableResult
func font(v: UFont?) -> Self
diff --git a/Classes/Protocols/GestureDelegatorable.swift b/Classes/Protocols/GestureDelegatorable.swift
index 49609671..0a8a5105 100644
--- a/Classes/Protocols/GestureDelegatorable.swift
+++ b/Classes/Protocols/GestureDelegatorable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol GestureDelegatorable: class {}
+public protocol GestureDelegatorable: AnyObject {}
protocol _GestureDelegatorable: GestureDelegatorable {
var _delegator: _GestureDelegator { get set }
diff --git a/Classes/Protocols/GestureRecognizerable.swift b/Classes/Protocols/GestureRecognizerable.swift
index 702cfec1..57264cd4 100644
--- a/Classes/Protocols/GestureRecognizerable.swift
+++ b/Classes/Protocols/GestureRecognizerable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol GestureRecognizerable: class {
+public protocol GestureRecognizerable: AnyObject {
@discardableResult
func delegate(_ v: UGestureRecognizerDelegate) -> Self
}
diff --git a/Classes/Protocols/GestureTrackable.swift b/Classes/Protocols/GestureTrackable.swift
index c81101f0..98a59961 100644
--- a/Classes/Protocols/GestureTrackable.swift
+++ b/Classes/Protocols/GestureTrackable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol GestureTrackable: class {
+public protocol GestureTrackable: AnyObject {
@discardableResult
func trackState(_ action: @escaping (UGestureRecognizer.State) -> Void) -> Self
diff --git a/Classes/Protocols/KeyMaskable.swift b/Classes/Protocols/KeyMaskable.swift
index 3d0bc0d9..a7e4fe7f 100644
--- a/Classes/Protocols/KeyMaskable.swift
+++ b/Classes/Protocols/KeyMaskable.swift
@@ -8,7 +8,7 @@
#if os(macOS)
import Cocoa
-public protocol KeyMaskable: class {
+public protocol KeyMaskable: AnyObject {
@discardableResult
func keyMask(_ mask: NSEvent.ModifierFlags) -> Self
diff --git a/Classes/Protocols/Keyable.swift b/Classes/Protocols/Keyable.swift
index 6af0599c..463511d4 100644
--- a/Classes/Protocols/Keyable.swift
+++ b/Classes/Protocols/Keyable.swift
@@ -1,7 +1,7 @@
#if os(macOS)
import Cocoa
-public protocol Keyable: class {
+public protocol Keyable: AnyObject {
@discardableResult
func key(_ text: String) -> Self
diff --git a/Classes/Protocols/Messageable.swift b/Classes/Protocols/Messageable.swift
index 7df2801c..536fb44e 100644
--- a/Classes/Protocols/Messageable.swift
+++ b/Classes/Protocols/Messageable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Messageable: class {
+public protocol Messageable: AnyObject {
#if !os(macOS)
@discardableResult
func messageChangeTransition(_ value: UIView.AnimationOptions) -> Self
diff --git a/Classes/Protocols/MixedStateAllowable.swift b/Classes/Protocols/MixedStateAllowable.swift
index 12e1ae44..e6e881b0 100644
--- a/Classes/Protocols/MixedStateAllowable.swift
+++ b/Classes/Protocols/MixedStateAllowable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol MixedStateAllowable: class {
+public protocol MixedStateAllowable: AnyObject {
@discardableResult
func allowMixedState() -> Self
diff --git a/Classes/Protocols/MultiClickIgnorable.swift b/Classes/Protocols/MultiClickIgnorable.swift
index 1ecbaaec..e43bc42b 100644
--- a/Classes/Protocols/MultiClickIgnorable.swift
+++ b/Classes/Protocols/MultiClickIgnorable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol MultiClickIgnorable: class {
+public protocol MultiClickIgnorable: AnyObject {
@discardableResult
func ignoreMultiClick() -> Self
diff --git a/Classes/Protocols/NavigationControllerable.swift b/Classes/Protocols/NavigationControllerable.swift
index 883e8480..94457465 100644
--- a/Classes/Protocols/NavigationControllerable.swift
+++ b/Classes/Protocols/NavigationControllerable.swift
@@ -1,3 +1,3 @@
-public protocol NavigationControllerable: class {
+public protocol NavigationControllerable: AnyObject {
var isSwipeBackEnabled: Bool { get set }
}
diff --git a/Classes/Protocols/Placeholderable.swift b/Classes/Protocols/Placeholderable.swift
index bcfd6d65..baeb6fbc 100644
--- a/Classes/Protocols/Placeholderable.swift
+++ b/Classes/Protocols/Placeholderable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Placeholderable: class {
+public protocol Placeholderable: AnyObject {
#if !os(macOS)
@discardableResult
func placeholderChangeTransition(_ value: UIView.AnimationOptions) -> Self
diff --git a/Classes/Protocols/PullsDownable.swift b/Classes/Protocols/PullsDownable.swift
index 21d97cd6..c0922a1c 100644
--- a/Classes/Protocols/PullsDownable.swift
+++ b/Classes/Protocols/PullsDownable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol PullsDownable: class {
+public protocol PullsDownable: AnyObject {
@discardableResult
func pullsDown() -> Self
diff --git a/Classes/Protocols/Refreshable.swift b/Classes/Protocols/Refreshable.swift
index 6b92cb07..9e396b92 100644
--- a/Classes/Protocols/Refreshable.swift
+++ b/Classes/Protocols/Refreshable.swift
@@ -1,4 +1,4 @@
-public protocol Refreshable: class {
+public protocol Refreshable: AnyObject {
func refresh()
}
diff --git a/Classes/Protocols/Secureable.swift b/Classes/Protocols/Secureable.swift
index 589f537b..5ea6762f 100644
--- a/Classes/Protocols/Secureable.swift
+++ b/Classes/Protocols/Secureable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Secureable: class {
+public protocol Secureable: AnyObject {
@discardableResult
func secure() -> Self
diff --git a/Classes/Protocols/Soundable.swift b/Classes/Protocols/Soundable.swift
index b7ef621b..5ade51b3 100644
--- a/Classes/Protocols/Soundable.swift
+++ b/Classes/Protocols/Soundable.swift
@@ -1,7 +1,7 @@
#if os(macOS)
import AppKit
-public protocol Soundable: class {
+public protocol Soundable: AnyObject {
@discardableResult
func sound(_ value: NSSound?) -> Self
diff --git a/Classes/Protocols/Taggable.swift b/Classes/Protocols/Taggable.swift
index d401b2cd..58575003 100644
--- a/Classes/Protocols/Taggable.swift
+++ b/Classes/Protocols/Taggable.swift
@@ -11,7 +11,7 @@ import AppKit
import UIKit
#endif
-public protocol Taggable: class {
+public protocol Taggable: AnyObject {
var tag: Int { get set }
@discardableResult
diff --git a/Classes/Protocols/TextAdjustsFontSizeable.swift b/Classes/Protocols/TextAdjustsFontSizeable.swift
index 0daaa472..d716d2b6 100644
--- a/Classes/Protocols/TextAdjustsFontSizeable.swift
+++ b/Classes/Protocols/TextAdjustsFontSizeable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol TextAdjustsFontSizeable: class {
+public protocol TextAdjustsFontSizeable: AnyObject {
@discardableResult
func adjustsFontSizeToFitWidth() -> Self
diff --git a/Classes/Protocols/TextAttributesEditingAllowable.swift b/Classes/Protocols/TextAttributesEditingAllowable.swift
index 6a671927..931ded19 100644
--- a/Classes/Protocols/TextAttributesEditingAllowable.swift
+++ b/Classes/Protocols/TextAttributesEditingAllowable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol TextAttributesEditingAllowable: class {
+public protocol TextAttributesEditingAllowable: AnyObject {
@discardableResult
func allowEditingTextAttributes() -> Self
diff --git a/Classes/Protocols/Textable.swift b/Classes/Protocols/Textable.swift
index 0181b89b..c458ccc8 100644
--- a/Classes/Protocols/Textable.swift
+++ b/Classes/Protocols/Textable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Textable: class {
+public protocol Textable: AnyObject {
#if !os(macOS)
@discardableResult
func textChangeTransition(_ value: UIView.AnimationOptions) -> Self
diff --git a/Classes/Protocols/Tintable.swift b/Classes/Protocols/Tintable.swift
index ed90ce2f..930c3d07 100644
--- a/Classes/Protocols/Tintable.swift
+++ b/Classes/Protocols/Tintable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Tintable: class {
+public protocol Tintable: AnyObject {
@discardableResult
func tint(_ color: UColor) -> Self
diff --git a/Classes/Protocols/Titleable.swift b/Classes/Protocols/Titleable.swift
index cd5444aa..fe67ce6c 100644
--- a/Classes/Protocols/Titleable.swift
+++ b/Classes/Protocols/Titleable.swift
@@ -4,7 +4,7 @@ import AppKit
import UIKit
#endif
-public protocol Titleable: class {
+public protocol Titleable: AnyObject {
#if !os(macOS)
@discardableResult
func titleChangeTransition(_ value: UIView.AnimationOptions) -> Self
diff --git a/Classes/Structs/AppBuilder.swift b/Classes/Structs/AppBuilder.swift
index 2bd8dd69..558b4f4e 100644
--- a/Classes/Structs/AppBuilder.swift
+++ b/Classes/Structs/AppBuilder.swift
@@ -25,7 +25,7 @@ struct _AppContent: AppBuilderContent {
let appBuilderContent: AppBuilderItem
}
-@_functionBuilder public struct AppBuilder {
+@resultBuilder public struct AppBuilder {
public typealias Block = () -> AppBuilderContent
public static func buildBlock() -> AppBuilderContent {
diff --git a/Classes/Structs/BodyBuilder.swift b/Classes/Structs/BodyBuilder.swift
index 494e64f6..a9980207 100644
--- a/Classes/Structs/BodyBuilder.swift
+++ b/Classes/Structs/BodyBuilder.swift
@@ -7,7 +7,7 @@ import UIKit
@available(*, deprecated, renamed: "BodyBuilder")
public typealias ViewBuilder = BodyBuilder
-@_functionBuilder public struct BodyBuilder {
+@resultBuilder public struct BodyBuilder {
public typealias Result = BodyBuilderItemable
public typealias SingleView = () -> Result
diff --git a/Classes/Structs/ExpressableState.swift b/Classes/Structs/ExpressableState.swift
index 4d93eb24..1c23ad51 100644
--- a/Classes/Structs/ExpressableState.swift
+++ b/Classes/Structs/ExpressableState.swift
@@ -10,7 +10,7 @@ extension State {
// MARK: Any States to Expressable
-public protocol AnyState: class {
+public protocol AnyState: AnyObject {
func listen(_ listener: @escaping () -> Void)
}
diff --git a/Classes/Structs/GesturesBuilder.swift b/Classes/Structs/GesturesBuilder.swift
index 74a13894..138b7dec 100644
--- a/Classes/Structs/GesturesBuilder.swift
+++ b/Classes/Structs/GesturesBuilder.swift
@@ -7,7 +7,7 @@
import Foundation
-@_functionBuilder public struct GesturesBuilder {
+@resultBuilder public struct GesturesBuilder {
public typealias Block = () -> GesturesBuilderItem
/// Builds an empty preview from an block containing no statements, `{ }`.
diff --git a/Classes/Structs/PreviewBuilder.swift b/Classes/Structs/PreviewBuilder.swift
index a0f0356c..c72f7d5e 100644
--- a/Classes/Structs/PreviewBuilder.swift
+++ b/Classes/Structs/PreviewBuilder.swift
@@ -33,7 +33,7 @@ public class PreviewGroup {
}
@available(iOS 13.0, macOS 10.15, *)
-@_functionBuilder public struct PreviewBuilder {
+@resultBuilder public struct PreviewBuilder {
public typealias Block = () -> PreviewBuilderItem
/// Builds an empty preview from an block containing no statements, `{ }`.
diff --git a/Classes/Structs/ShortcutBuilder.swift b/Classes/Structs/ShortcutBuilder.swift
index 3b3848a6..d3d731ca 100644
--- a/Classes/Structs/ShortcutBuilder.swift
+++ b/Classes/Structs/ShortcutBuilder.swift
@@ -22,7 +22,7 @@ struct _ShortcutContent: ShortcutBuilderContent {
let shortcutBuilderContent: ShortcutBuilderItem
}
-@_functionBuilder public struct ShortcutBuilder {
+@resultBuilder public struct ShortcutBuilder {
public typealias Block = () -> ShortcutBuilderContent
public static func buildBlock() -> ShortcutBuilderContent {
diff --git a/Classes/Structs/StateStringBuilder.swift b/Classes/Structs/StateStringBuilder.swift
index 3da4ec08..b526be4e 100644
--- a/Classes/Structs/StateStringBuilder.swift
+++ b/Classes/Structs/StateStringBuilder.swift
@@ -1,6 +1,6 @@
import Foundation
-@_functionBuilder public struct AnyStringBuilder {
+@resultBuilder public struct AnyStringBuilder {
public typealias Handler = () -> AnyString
public static func buildBlock() -> AnyString { "" }
diff --git a/README.md b/README.md
index e4cd3b39..08e00a96 100644
--- a/README.md
+++ b/README.md
@@ -3,10 +3,10 @@
-
+
-
+
@@ -29,9 +29,9 @@
## Requirements
-Xcode 12.3+
+Xcode 13.0+
-Swift 5.3+
+Swift 5.5+
Good mood
@@ -46,7 +46,7 @@ pod 'UIKit-Plus', '~> 2.0.0'
#### With [Swift Package Manager](https://swift.org/package-manager/)
-In Xcode 12.3+ go to `File -> Swift Packages -> Add Package Dependency` and enter there URL of this repo
+In Xcode 13.0+ go to `File -> Swift Packages -> Add Package Dependency` and enter there URL of this repo
```
https://github.com/MihaelIsaev/UIKitPlus
```
diff --git a/UIKit-Plus.podspec b/UIKit-Plus.podspec
index 73d5196e..4355fb8e 100644
--- a/UIKit-Plus.podspec
+++ b/UIKit-Plus.podspec
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
s.version = '2.0.0'
s.summary = '🏰 Declarative UIKit wrapper inspired by SwiftUI'
- s.swift_version = '5.3'
+ s.swift_version = '5.5'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?