iWe

Results 26 comments of iWe

```swift import PinLayout // ... view1.pin.width(80%) view2.pin.width(view1.frame.width - 20).center(to: view1.anchor.center) ```

same issue. `YYLabel` is fine, `ASTextNode` and `ASTextNode2` is broken. ![CleanShot 2021-08-23 at 09 49 26@2x](https://user-images.githubusercontent.com/16604027/130379572-a3269f14-fab7-44c8-8b99-85666ca70a01.png) ![CleanShot 2021-08-23 at 09 52 53@2x](https://user-images.githubusercontent.com/16604027/130379558-27516646-ea00-4b2e-8c21-34cb9edc8f3b.png) ![CleanShot 2021-08-23 at 09 50 59@2x](https://user-images.githubusercontent.com/16604027/130379569-05569ff7-1ea7-44aa-81e5-fe4bd7c8e852.png)

I found a `NSAttributedString+ASText.h`. It and `YYText` look the same. I can probably confirm that it is because ASText's built-in AttachmentKey is 'ASTextAttachment', but `YYText` is 'YYTextAttachment', the two keys...

Wait... I continued to confirm, it has something to do with `AttributeName`, but more importantly, ASTextNode/2 is a NSObject. So `drawInContext:size:point:view:layer:debug:cancel` can not add view to display. ![CleanShot 2021-08-23 at...

I found the `Alamofire` has `func validate(contentType acceptableContentTypes: S, response: HTTPURLResponse, data: Data?) -> ValidationResult`, any ideas on how to embed it in Moya?

You can add a plugin that inherits from `PluginType` and implements `func prepare`, where you can modify/encrypt the URLRequest in `prepare`.

> Have you tried to test the memory footage in release mode too, or just in debug mode? > The form-data encoder has a known issue of taking up too...

I found a temporary solution: ```swift public struct VideoPayload: Codable, Content { var video: File? //

I need to check again. When I'm done checking, I'll open it again