03 2023 档案
摘要:#import "WKSVGConvert.h" #import <WebKit/WebKit.h> @interface WKSVGConvert () <WKNavigationDelegate> @property (nonatomic, strong) WKWebView *webView;
阅读全文
摘要:struct RingShap: Shape { var pointSize: CGFloat = 10.0 func path(in rect: CGRect) -> Path { let drawRect = CGRectInset(rect, 0.5 * pointSize, 0.5 * po
阅读全文
摘要:import Foundation public class NodeDrawingEngine: NSObject { /// Scene root node open var node: Node = Group() { didSet { self.renderer?.dispose() sel
阅读全文
摘要:Argument type 'Any' expected to be an instance of a class or class-constrained type Any是任意类型,AnyObject必须是对象实例,如果是OC的id类型,那么对应的应该是Any
阅读全文
摘要:@Published 标记对象定义的属性变更可以被监听,当对应字段变化时会触发对象 objectWillChange 通知,订阅了该属性的View也会收到值改变的通知 /// A type that publishes a property marked with an attribute. ///
阅读全文