Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
102 views

(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

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 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

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

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 I have private lazy var aLine: RepairedCAShapeLayer { let v = RepairedCAShapeLayer() v.contentsScale = UIScreen.main.scale v.strokeColor = cfp.color.cgColor v.fillColor = nil ...
Fattie's user avatar
  • 9,794
-1 votes
1 answer
44 views

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

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

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

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

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 (even along the straight part) as it follows my UIBezierPath? I have this code (GameViewController) ...
user avatar
0 votes
2 answers
132 views

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
0 votes
1 answer
58 views

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
0 votes
2 answers
120 views

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 ...

15 30 50 per page
1
2 3 4 5
...
120

AltStyle によって変換されたページ (->オリジナル) /