

GitHub - OskarGroth/FlatButton: Layer based NSButton with Interface Builder styl...
source link: https://github.com/OskarGroth/FlatButton
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
FlatButton
Layer based NSButton with Interface Builder exposed style options.
This is a subclass that lets you create beautiful NSButton controls easily.
Installation (CocoaPods)
Configure your Podfile to use FlatButton
:
pod 'FlatButton'
Note that FlatButton is Swift 3 only.
Usage
Create an NSButton
in Interface Builder and set it's class to FlatButton
.
You can now style your button from the inspector:
The same values can be accessed from your code.
License
The MIT License (MIT)
Copyright (c) 2016 Oskar Groth
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Recommend
-
142
IBLinter A linter tool to normalize .xib and .storyboard files. Inspired by realm/SwiftLint
-
42
Introduction Interface Builder (IB) has been available on iOS for several years now. It’s often the center of debates when teams set out on new projects. Should you use programmatic layout (PL) or IB? There are...
-
71
README.md Mojito Mojito is a backend management system based on Laravel, Vue, Element. Simplified Chinese
-
10
Designing Custom UICollectionViewListCell in Interface Builder Since the publishing of my article “UICollectionView List with Custom Cell and Custom Con...
-
11
Jan 29, 2021 — 03:53 CST CARROT Weather 5 Introduces New Design Elements, Custom Interface Builder, and More
-
11
15 Aug 2019 software-dev
-
10
Table of contents:Before moving on to how to use a scrollview in storyboard / XIB, I think it's crucial to discuss the structure of scroll view to prevent getting "ambiguous scrollable content width / height" error message in Interface...
-
8
Why I Don’t Use Interface Builder Posted on May 13, 2013 For iOS development, I don't use Interface Builder. I haven't willfully used a N...
-
14
Xcode 5新的Interface Builder,你准备好了吗? 这次为大家推荐的这篇文章是来自与Nils的博客,我非常喜欢这个博客,作者是一位来自纽约布鲁克林的iOS开发者,整个博客风格非常简单清新,很合我的胃口(又有...
-
7
Interface Builder Keyboard Layout Guide Xcode 14 adds support for keyboard layout guides to Interface Builder. Apple introduced the keyboard layout gui...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK