Xcode – Wrong positioning of UIBarButtonItem
I have this code for my UIBarButtonItem. When i'm trying with title, everything is ok, but with image it shows a little bit left then it should be. I don't know how to fix it, what can be wrong? Same…
I have this code for my UIBarButtonItem. When i'm trying with title, everything is ok, but with image it shows a little bit left then it should be. I don't know how to fix it, what can be wrong? Same…
Some time ago I asked how to draw UI block in this question. Thankfully to @HangarRash I got the answer and understanding how to do it. But right now I would like to created StackView which is based on two…
I am trying to build a imageview with a button that attached to itself for settings page. I want to tell users to click to image if they want to change it. So what I wanna to do is similar…
I am trying to learn building custom shapes using UIBezierPath and I am trying to build a simple triangle. Below is the code I am using class ViewController: UIViewController { let customView = CustomTraingleView(frame: CGRectZero) override func viewDidLoad() { super.viewDidLoad()…
I'm new to SwiftUI and trying to start using it in a complex, existing UIKit app. The app has a theming system, and I'm not sure how to get the SwiftUI view to respond to theme change events. Our theme…
please see the image below for two examples of what is to be achived the alignment should be on the Center Y of the first lines of each UILabels and should work regardless of font size or font. currently we…
How can I use LargestUndimmedDetentIdentifier with custom SheetPresentation height ? I have a UISheetPresentationController with two customs Detents and I don't find how can interact with content underneath. UISheetPresentationController sheet = NavigationController!.SheetPresentationController!; sheet.PrefersGrabberVisible = true; sheet.PrefersScrollingExpandsWhenScrolledToEdge = false; sheet.WidthFollowsPreferredContentSizeWhenEdgeAttached =…
I have a function that accepts a UIColor. func getColor(_ background: UIColor) -> UIColor { switch background { case .white, .systemBrown: return .black case .darkGray: return .lightGray case .black: return .white default: return .label } } and I have UIButton…
It is visible if i comment part where i set my ViewControllers. It is like been superimposed by other ViewControllers. Cause it works but i can't see it. When i tap bottom parts of screen color of screen changes to…
So I have a stack view and the profile image needs to go next to the the username and stay there. How do I do that in this arranged stack view without conflicts because I have tried to anchor it…