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