1,791 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
102
views
Rounded corner of a cut-out arc using UIBezierPath without off-setting the arc centre
(This question is a sequel to this one—I'm trying to figure out how to adapt the code to new circumstances.)
I have a code that produces this shape:
The code is extracted into a function, producing ...
0
votes
1
answer
97
views
How to make Custom TabBar with curved selected tab that stays?
I’m new to SwiftUI and have completed half of my TabBar UI. However, I’m stuck on adding an outer corner to the selected tab.
This is what I currently have:
This is what I'm tring to do:
Below is my ...
0
votes
1
answer
124
views
How to draw center curve in UIView?
How to create a smooth top center inward curve in a UIView in Swift (using UIBezierPath)?
This does create a curve, but it doesn’t look smooth or natural. It either appears too sharp or not deep ...
0
votes
2
answers
95
views
Combine two view into one shape UIKit in Swift
I am trying to make the above shape with UIKit. The small independent circle I am not concerned about, however, the semi-circle on the bottom left of the rounded rect is where I am getting stuck, ...
-1
votes
1
answer
90
views
Restrict user touch events outside drawn bezierpath [duplicate]
I have created a view like this using XIB with having half of height assign to that view.
static func drawRightTriangle(targetView target: UIView, cornerRadius: CGFloat, borderView: UIView) {
...
0
votes
1
answer
64
views
When using a CAShapeLayer, is there any advantage at all to using a UIBezierPath over just constructing a cgPath?
When I have
private lazy var aLine: RepairedCAShapeLayer {
let v = RepairedCAShapeLayer()
v.contentsScale = UIScreen.main.scale
v.strokeColor = cfp.color.cgColor
v.fillColor = nil
...
-1
votes
1
answer
44
views
uiview on the edge of UIBezierPath
i am trying to add an overlay (marker view) along side my path created with UIBezierPath. i can achieve it with hardcoded values comparing x's and y's of the graph. but problem is this is getting too ...
1
vote
1
answer
87
views
How do I stop a node as it is moving around a UIBezierPath and then restart the moving from where it stopped?
See Apple DTS' solution at the bottom of this Post ...
I have an oval UIBezierPath with a moving SKSpriteNode,
I stop its motion and record the stopped position. I then restart this motion and want it ...
1
vote
1
answer
106
views
How to resize objects that have been drawn by UIBezierPath in swift iOS?
I have used UIBezierPath to draw objects like circle, line, freeline etc....
I have a functionality where i have to resize circle and line objects from the topRight and bottomRight variables in the &...
0
votes
1
answer
60
views
UIBezierPath stroke with alpha issue / artifact
I need to draw a curve with a translucent color. But if the curve contains many points, then you can get a strange effect. How to get rid of it?
UIBezierPath * bezierPath = [ UIBezierPath bezierPath ]...
-2
votes
1
answer
47
views
How to calculate the intersection of two UIBezierpaths [closed]
I need to calculate the intersection of two irregular UIBezierpaths say to closed paths representing irregular shapes. Problem is I don't even know how to get started on this. I've searched for ...
0
votes
0
answers
54
views
Calling SKAction.follow(..) causes my SKSpriteNode to rotate 90 degrees CCW and not stay horizontal as it follows my UIBezierPath?
Calling SKAction.follow(..) causes my SKSpriteNode to rotate 90 degrees CCW and not stay horizontal (even along the straight part) as it follows my UIBezierPath?
I have this code (GameViewController) ...
user avatar
user22530416
0
votes
2
answers
132
views
What algorithm is available to correlate a SKSpriteNode's position with the UIBezierPath's currentPoint?
What algorithm is available to correlate a SKSpriteNode's position with the UIBezierPath's currentPoint?
I have this code (GameViewController) which implements the following of a SKSpriteNode along a ...
user avatar
user22530416
0
votes
1
answer
58
views
SKSpriteNode positioning math escapes me?
SKSpriteNode positioning math escapes me ?
More specifically, the positioning required for creating a UIBezierPath from a CGRect.
A very few short code snippets follow ...
roomWidth = UIScreen.main....
user avatar
user22530416
0
votes
2
answers
120
views
Add multiple curve label's along with circular wheel that can rotate
I'm working on an ios project & I want to add a circular text label along with circular wheel using Swift language.The wheel can also rotate, and the labels with curved text will rotate to 360 ...