Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
1 answer
33 views

How to maintain the UIView C position same in UIView A?

What I want is to move UIViewB and maintain all the views position like nothing happened. I want viewC back to the original place before viewB is moved how ? This must apply to all angles regardless ...
WCK's user avatar
  • 13
0 votes
1 answer
32 views

Updating label text when font set with systemFont vs UIFont

When setting font in configureSpeedLabel and configureProgressLabel below, if I set font using UIFont speedLabel.font = UIFont(name: "TimesNewRomanPSMT", size: 24) then the progress track ...
brunshte's user avatar
  • 301
0 votes
1 answer
27 views

UIButton that allows clicks to pass through to button below

I create this image for illustration of my issue. I have a button that on touch hold changes background to pink. Then a view in-between the two buttons to display a view. Then another button on top to ...
Gustavo Baiocchi Costa's user avatar
0 votes
0 answers
33 views

App crashes, while removing an uiview from superview, when the app comes from background to foreground in swift

I have an IBOutlet for a UIView in my iOS Swift app, and I set its frame in viewDidLoad. when the app goes to background, we are taking snapshot of gmsmapview and setting it to the uiview. However, ...
IMANUL SIDDIQUE's user avatar
1 vote
1 answer
32 views

I want to slide the View from left to right and also it should disappear be from left to right in swift

func createAnimationView() -> UIView { let animationView = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 60)) animationView.backgroundColor = .red ...
Anusha iworld's user avatar
0 votes
0 answers
27 views

How to bend or tilt UIView into a curve shape without disturbing its layout?

enter image description hereHow can we bend or tilt UIView as a curve shape? Internally my UIView has few UI components I tried using Bezierpaths by drawing, I could Draw curve shape my but my content ...
Narayana MV's user avatar
0 votes
0 answers
40 views

Intermittent Issue with Removing Snapshot View from MapView in iOS

I am facing an intermittent issue with removing a snapshot view from a MKMapView in my iOS app. The snapshot view is added to the map view as there was a white screen while the satelite view is ...
IMANUL SIDDIQUE's user avatar
-1 votes
1 answer
59 views

Tableview height issue after device orientation changed

I am showing a view Controller with a self sizing tableview inside a Container view. See green color view in image 1. If the device orientation changed to Landscape mode, the UI has no issues and ...
udi's user avatar
  • 317
-1 votes
1 answer
43 views

Configure Label and Circular Progress Bar in Init vs layoutSubviews

I'm working on a speed test app which has a custom CircularProgressView that includes a speedLabel and the speedLabel is centered in the progress view. I have a createCircularPath method to create the ...
brunshte's user avatar
  • 301
0 votes
0 answers
27 views

Navigating to third view after launch pops back

So I have been stuck for a two days with swiftui navigation. I have viewA which navigates to viewB and viewB to viewC right after launch. The issue is, when I navigate to the third view right after ...
Zajebany Sifl's user avatar
0 votes
1 answer
81 views

Adding Constraints to view, whose topAnchor's is bottomAnchor of UIView with dynamic height

I've created a UIView, which has buttons in it. I set the constraints like this : NSLayoutConstraint.activate([ sampleView.topAnchor.constraint(equalTo: topView.bottomAnchor, constant: 20), ...
ajay_sarkate's user avatar
0 votes
2 answers
87 views

Custom context menu corner radius

I created my custom context menu using UIView. Im trying to change the corner radius when the context menu is active, but I have no idea how. I tried masks, layer whatsoever, but nothing worked. The ...
Zajebany Sifl's user avatar
0 votes
1 answer
44 views

Inserting subview into view where I've added subviews and sublayers

I have the following set-up of CAShapeLayers and UIViews attached to a UIView: [self.layer addSublayer:self.shapeLayer1]; if (someCase) { [self.layer addSublayer:self.shapeLayerOptional]; } [...
Ser Pounce's user avatar
  • 14.4k
0 votes
1 answer
29 views

Having trouble converting point that's on a rotated view with a (0, .5) anchor point

I have the following view set up: Where the anchor point for V3 is (0, .5) and it can be rotated by a UIPanGestureRecognizer that's attached to V4. I'm trying to translate a point on V4 to V1s ...
Ser Pounce's user avatar
  • 14.4k
0 votes
1 answer
96 views

Setup the constrains between the UIView and UIViewController

I want to add view controller as subview inside the UIView . I have given the required constrains but I am not figure it out why it overlapping . Here is minimal code for it. I have given the top , ...
Nar's user avatar
  • 85

15 30 50 per page
1
2 3 4 5
867