feature: support swift package manager #965
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://github.com/DingSoung/FlexLayout
Hi DingSoung! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.
If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!
Hi @DingSoung thanks for putting this together. Some features of YogaKit are incomplete in the package, for instance there is no ability to use the
UIView.yoga
property, which is critical to useapplyLayout
and theconfigureLayout
block. My guess is because the headers and classes withinYogaKit/Sources
is not included, which contains the gatewayUIView+Yoga.h
.I tried reconfiguring your
Package.swift
to support multiple source directories, but ran into an error about mixed language source files. SPM might have trouble with c++ objc and swift all together, not sure.Can you take a stab at including the rest of YogaKit in the package?
我的想法是分离layout(yoga)和UI(UIKit)
好处1: 前者运行在background thread,后者运行在main thread. main thread 忙的时候,可以减轻它负担。
好处2: 在复杂的页面,可以提前计算好布局,然后构造UI,同时设置位置。
今后我们可以这么写native
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!
We are deprecating YogaKit as part of the Yoga 2.0 release. We are still going to release a new revision based on the current state of the repo, but won't be accepting new contributions, since we are going to be removing it from the repo after.
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
Pull request closed