Relative Content

Tag Archive for iosswiftxcodeswiftui

How to Animate Transition Between a UICollectionViewCell and a SwiftUI View in iOS?

I have a HomeViewController that contains a UICollectionView with cells displaying images of size 200×200. When a cell(catogary) is tapped, it navigates to another UIViewController with an animated transition. The animation is that the image expands and then bounces to the top of the viewController’s view taking half of the hight of the screen and the other half is a Table view Cells(subcatogaries of the main catogary).

SwiftUI .toolbar not showing at bottom of screen

new coder here, and I am learning SwiftUI for the first time. I started an iOS coding journey this year after not having coded since 2005, when I last coded a social media website using HTML, CSS, and Cold Fusion7. I have been following tutorials for a while and cannot get past this bug that doesn’t generate any errors. I may have my .toolbar embedded in the wrong area of my View Controller. But the toolbar refuses to show at the bottom of the screen. See the two screenshots. One shows the toolbar, but the report title and select button are not at the top of the screen. The other is where I fixed the select/edit button, but the toolbar is missing.

SwiftUI – Accessibility set focus on navigation title

I’m trying to set the VoiceOver focus to be on the navigation title when the user first opens a page. I’ve done this with UIKit using the UIAccessibility post(notification:argument:) function, but unsure how to accomplish this with SwiftUI.