Comments (6)
if corners.contains(.bottomLeft) {
cornerMask.update(with: .layerMinXMinYCorner)
}
if corners.contains(.bottomRight) {
cornerMask.update(with: .layerMaxXMinYCorner)
}
if corners.contains(.topLeft) {
cornerMask.update(with: .layerMinXMaxYCorner)
}
if corners.contains(.topRight) {
cornerMask.update(with: .layerMaxXMaxYCorner)
}
Should be:
if corners.contains(.bottomLeft) {
cornerMask.update(with: .layerMinXMaxYCorner)
}
if corners.contains(.bottomRight) {
cornerMask.update(with: .layerMaxXMaxYCorner)
}
if corners.contains(.topLeft) {
cornerMask.update(with: .layerMinXMinYCorner)
}
if corners.contains(.topRight) {
cornerMask.update(with: .layerMaxXMinYCorner)
}
from bfkit.
Code:
cornerRadius(corners: [.topLeft, .topRight, .bottomRight], radius: 16)
from bfkit.
Thanks! Why not open a pull request? 😄
Just a question, they changed the Y asix on iOS 11?
from bfkit.
Haha.. My source control software having some issue on push code to GitHub..
I don't think they changed the Y axis stuffs on iOS 11 due to coordinate x: 0, y: 0 is top-left corner. And in your original code you state .bottomLeft is minimum X and minimum Y, so it's not correct obviously.
from bfkit.
Ahah ok I will fix it.
I don't understand your previous comment, both the images are generated by the same code cornerRadius(corners: [.topLeft, .topRight, .bottomRight], radius: 16)
?
Or is a "How is now" and "How has to be"?
from bfkit.
@kokitang News about that issue?
from bfkit.
Related Issues (18)
- spelling error HOT 1
- the same bug in UIDevice+BFKit.h about SCREEN_WIDTH and SCREEN_HEIGHT HOT 3
- Use of @import when modules are disabled HOT 2
- bug in NSFileManager+BFKit.m HOT 4
- Nullable & Nonnull support
- NSString+BFKit maybe crash HOT 5
- imageAtRect:(CGRect)rect not working properly for iPhone 6S Plus HOT 3
- Support Language Issues HOT 5
- Cannot convert value of type '[NSAttributedStringKey : Any]' (aka 'Dictionary<NSString, Any>') to expected argument type '[String : Any]?' HOT 14
- Error "Type of expression is ambiguous" between Timer and NSObject extension HOT 2
- pod HOT 2
- UIWebview Appstore rejections HOT 1
- UIWebView deprecated issue in ObjectiveC Pod file HOT 2
- The file “BFKit.h” couldn’t be opened because you don’t have permission to view it. HOT 1
- Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.3 compiler
- Why not contain Base64 Encode&Decode? HOT 1
- Fuc 'reversedArray' return wrong HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bfkit.