twitter-archive/twui là dự án Objective-C với 2.7k sao. A UI framework for Mac based on Core Animation
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
TwUI is a hardware accelerated UI framework for Mac, inspired by UIKit. It enables:
GPU accelerated rendering backed by CoreAnimation
Simple model/view/controller development familiar to iOS developers
It differs from UIKit in a few ways:
Simplified table view cells
Block-based layout and drawRect
A consistent coordinate system (bottom left origin)
Sub-pixel text rendering
Setup
To use the current development version, include all the files in your project and import TUIKit.h. Set your target to link to the ApplicationServices and QuartzCore frameworks. Be sure to add NS_BUILD_32_LIKE_64 to your preprocessor flags.
Usage
Your TUIView-based view hierarchy is hosted inside an TUINSView, which is the bridge between AppKit and TwUI. You may set a TUINSView as the content view of your window, if you'd like to build your whole UI with TwUI. Or you may opt to have a few smaller TUINSViews, using TwUI just where it makes sense and continue to use AppKit everywhere else.
Example Project
An included example project shows off the basic construction of a pure TwUI-based app. A TUINSView is added as the content view of the window, and some TUIView-based views are hosted in that. It includes a table view, and a tab bar (which is a good example of how you might build your own custom controls).
Status
TwUI should be considered an alpha project. It is current shipping in Twitter for Mac, in use 24/7 by many, many users and has proven itself very stable. The code still has a few Twitter-for-Mac-isms that should be refactored and cleaned up.
This project follows the SemVer standard. The API may change in backwards-incompatible ways before the 1.0 release.
The goal of TwUI is to build a high-quality UI framework designed specifically for the Mac. Much inspiration comes from UIKit, but diverging to try new things (i.e. block-based layout and drawRect), and to optimize for Mac-specific interactions is encouraged.
Known limitations
There are many places where TwUI could be improved:
Accessibility. It would be great to bridge the AppKit accessibility APIs to something simpler, again, inspired by UIKit.
Text editing. TUITextEditor is a simple text editor (built on TUITextRenderer). It provides basic editing support and handles a number of standard keybindings. Fleshing this out to be indistinguishable from NSTextView (read: spellchecking, autocorrect) would be useful. If the logic around this were self-contained it would even be great as a standalone project, useful for anyone looking to build a custom text editor for the Mac.
Reverse-hosting. Right now TUIViews may be hosted inside of an existing NSView hierarchy. It would be useful if the reverse were possible, adding NSViews inside of TUIViews. Doing so in a robust way so event routing, the responder chain, and CAAnimations all just work is a challenge.
Documentation
You can generate documentation with doxygen. Install it, and then run:
cd docs
doxygen
Documentation is a work in progress, but the API will be familiar if you have used UIKit. (TODO: appledoc looks very cool, moving to that might be nice).
TwUI has a mailing list, subscribe by sending an email to [email protected].
Copyright and License
Copyright 2011 Twitter, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/twitter-archive/twui là nguồn chính thức.
twitter-archive/twui có bao nhiêu sao?
twitter-archive/twui có 2.7k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/twitter-archive/twui. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
twitter-archive/twui có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho twitter-archive/twui. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
twitter-archive/twui còn đang phát triển không?
Commit gần nhất trên twitter-archive/twui là 11.2 năm trước (theo timestamp GitHub). Repo có 261 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
twitter-archive/twui là gì?
twitter-archive/twui (twitter-archive/twui) là dự án Objective-C trên GitHub. Theo mô tả gốc: A UI framework for Mac based on Core Animation
Đọc đầy đủ README ở tab phía trên.
Chưa chắc twui có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về twui.