目录
目录README.md

Build Status License Platforms

NSUI

AppKit and UIKit without conditional compilation

There are small differences between otherwise-source-compatible classes in AppKit and UIKit and it drives everyone bananas. I was inspired by Nick Lockwood to make this into a package.

When in doubt, UIKit wins. This keeps things familar to the most people.

Integration

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/mattmassicotte/nsui")
]

Types

NSUIApplication
NSUIApplicationDelegate
NSUIApplicationDelegateAdaptor
NSUIColor
NSUIHostingController
NSUILongPressGestureRecognizer
NSUITapGestureRecognizer
NSUITextStorageEditActions
NSUITextView
NSUIViewController
NSUIWorkspace
NSUIPasteboard

Protocols

public protocol NSUIViewRepresentable {
    associatedtype NSUIViewType

    func makeNSUIView(context: Context) -> NSUIViewType
    func updateNSUIView(_ view: NSUIViewType, context: Context)
}

Contributing and Collaboration

I prefer collaboration, and would love to find ways to work together if you have a similar project.

I prefer indentation with tabs for improved accessibility. But, I’d rather you use the system you want and make a PR than hesitate because of whitespace.

Suggestions and Feedback

I’d love to hear from you! Get in touch via mastodon, an issue, or a pull request.

By participating in this project you agree to abide by the Contributor Code of Conduct.

关于
59.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号