All Projects → lapfelix → UIView-SmoothCorners

lapfelix / UIView-SmoothCorners

Licence: MIT License
An App-Store-safe way to enable smooth continuous corners on UIView that works on iOS 11, 12 and 13.

Programming Languages

objective c
16641 projects - #2 most used programming language
swift
15916 projects

Projects that are alternatives of or similar to UIView-SmoothCorners

Swiftuikitview
Easily use UIKit views in your SwiftUI applications. Create Xcode Previews for UIView elements
Stars: ✭ 398 (+337.36%)
Mutual labels:  uikit, uiview
TinderUISamples
[ING] - TinderのようなUIを様々な実装で実現してみる
Stars: ✭ 30 (-67.03%)
Mutual labels:  uikit, uiview
Shadowview
An iOS Library that makes shadows management easy on UIView.
Stars: ✭ 391 (+329.67%)
Mutual labels:  uikit, uiview
Viewanimator
ViewAnimator brings your UI to life with just one line
Stars: ✭ 6,592 (+7143.96%)
Mutual labels:  uikit, uiview
Gskstretchyheaderview
A generic stretchy header for UITableView and UICollectionView
Stars: ✭ 1,624 (+1684.62%)
Mutual labels:  uikit, uiview
Render
UIKit a-là SwiftUI.framework [min deployment target iOS10]
Stars: ✭ 2,150 (+2262.64%)
Mutual labels:  uikit, uiview
Instagramactivityindicator
Activity Indicator similar to Instagram's.
Stars: ✭ 138 (+51.65%)
Mutual labels:  uikit, uiview
LSAdditions
The Category of Commonly used controls and you can create a control quickly(Object, Control ...)
Stars: ✭ 15 (-83.52%)
Mutual labels:  uikit, uiview
taiga-ui
Angular UI Kit and components library for awesome people
Stars: ✭ 2,251 (+2373.63%)
Mutual labels:  uikit
NativeMarkKit
NativeMark is a flavor of Markdown designed to be rendered by native apps.
Stars: ✭ 36 (-60.44%)
Mutual labels:  uikit
qi-design-vue
This is a design standard with an implement for web UI components library based on Vue.
Stars: ✭ 26 (-71.43%)
Mutual labels:  uikit
Texture
Smooth asynchronous user interfaces for iOS apps.
Stars: ✭ 7,512 (+8154.95%)
Mutual labels:  uikit
ocean-web
Blu's Design System
Stars: ✭ 25 (-72.53%)
Mutual labels:  uikit
ng-sq-ui
Flexible and easily customizable UI-kit for Angular 11+
Stars: ✭ 99 (+8.79%)
Mutual labels:  uikit
WebPKit
A framework that extends a variety of Cocoa APIs with capabilities for encoding and decoding WebP files for all of Apple's platforms.
Stars: ✭ 29 (-68.13%)
Mutual labels:  uikit
ikyle.me-code-examples
Smaller code examples from my blog posts on ikyle.me
Stars: ✭ 29 (-68.13%)
Mutual labels:  uikit
laravel-uikit
Laravel 5.5/5.6 frontend preset for UIkit 3
Stars: ✭ 11 (-87.91%)
Mutual labels:  uikit
Anchor-Bootstrap-UI-Kit
Anchor is a free Bootstrap UI Kit with flexible, ready to use UI components which will hep you build websites faster.
Stars: ✭ 69 (-24.18%)
Mutual labels:  uikit
Invalidating
Backports the new @invalidating property wrapper to older platforms
Stars: ✭ 53 (-41.76%)
Mutual labels:  uikit
AndroidUIKit
UIKit for Android
Stars: ✭ 45 (-50.55%)
Mutual labels:  uikit

UIView-SmoothCorners

An easy way to enable smooth corners on UIView, without using the private -[CALayer continuousCorners] API (rdar://42040072)

How to use

Swift

As a UIView subclass:

Add SmoothView.swift to your project

let myView = SmoothView()
myView.flx_smoothCorners = true
myView.layer.cornerRadius = 50

(Or change the base class of your main UIView subclass from UIView to SmoothView)

As a UIView category (that swizzles layoutSubviews):

Add UIView+SmoothCorners.h and UIView+SmoothCorners.m to your project Add #import "UIView+SmoothCorners.h" to your bridging header

myView.layer.cornerRadius = 50
myView.flx_continuousCorners = true

Objective-C

As a UIView subclass:

Add FLXSmoothView.h and FLXSmoothView.m to your project

FLXSmoothView *myView = [FLXSmoothView new];
myView.flx_smoothCorners = YES;
myView.layer.cornerRadius = 50;

(Or change the base class of your main UIView subclass from UIView to FLXSmoothView)

As a UIView category (that swizzles layoutSubviews):

Add UIView+SmoothCorners.h and UIView+SmoothCorners.m to your project

myView.layer.cornerRadius = 50;
myView.flx_continuousCorners = YES;

Shortcomings

  • To make things simple for the category approach, I'm not observing the layer's corner radius changes. So make sure the corner radius is set before a layout pass or before setting flx_continuousCorners to true.
  • No cocoapods or carthage support yet
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].