03 2023 档案

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