skip to Main Content

How do I zoom an image from a UICollectionView? – Ios swift

I've created a UICollectionView in Swift with photos taken from an API : https://jsonplaceholder.typicode.com/photos I've created a window where my images can be set to fullscreen here: extension ViewController: UICollectionViewDataSource, UICollectionViewDelegate{ func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int…

VIEW QUESTION

Why Xcode & Simulator give me different dates?

I have this simple code (Xcode iOS app) import SwiftUI struct ContentView: View { var body: some View { VStack { Button(action: { let dateToday = Date() let dateOneYearAgo = Calendar.current.date(byAdding: .year, value: -1, to: dateToday) ?? dateToday print("dateToday: (dateToday)…

VIEW QUESTION
Back To Top
Search