ResizableView
@MainActor
public class ResizableView<Content> : UIView where Content : UIView
可调整大小的视图包装器,解决frame尺寸变为图片尺寸等问题
-
Undocumented
Declaration
Swift
@MainActor public var content: Content
-
Undocumented
Declaration
Swift
@MainActor public var resizable: Bool
-
Undocumented
Declaration
Swift
@MainActor public init(_ content: Content, frame: CGRect = .zero)
-
Undocumented
Declaration
Swift
@MainActor override public func layoutSubviews()
-
Undocumented
Declaration
Swift
@MainActor override public var frame: CGRect { get set }
-
Undocumented
Declaration
Swift
@MainActor override public var bounds: CGRect { get set }
-
Undocumented
Declaration
Swift
@MainActor override public var intrinsicContentSize: CGSize { get }
-
Undocumented
Declaration
Swift
@MainActor override public func sizeThatFits(_ size: CGSize) -> CGSize