Post

Replies

Boosts

Views

Activity

Reply to Building Issue
Welcome to the forum. Is it a project (not a playground) ? Do you mean this right pointing black triangle on the right? Which version of Xcode ? Do you see a simulator selected in the top line ? What happens if you create a new project (iOS project, SwiftUI for instance) ? Do you get the triangle ? If not, you may have to reinstall Xcode
Topic: App & System Services SubTopic: General Tags:
Dec ’24
Reply to How to animate substring in a Text?
What do you want ? conversation/ meeting/ lecture to have always the same size ? Have the whole string with the same size ? For the later I tried using scaleEffect, which seems to be giving the expected result. struct ContentView: View { var array = ["lecture", "conversation", "meeting"] var scaleEffects = [1.0, 0.9, 1.0] // <<-- ADDED : firstString forces scale down @State var currentIndex : Int = 0 @State var firstString : String = "" @State var scale = 1.0 // <<-- ADDED var body: some View { VStack { HStack { Text("Transform") .lineLimit(1) .minimumScaleFactor(0.5) .font(.title) Text(firstString) .lineLimit(1) .minimumScaleFactor(0.5) .font(.title) .transition(AnyTransition.opacity.animation(.easeInOut(duration:1.0))) .background(.yellow) Text("to Quick Note") .lineLimit(1) .minimumScaleFactor(0.5) .font(.title) } .padding() .frame(width: 420) .scaleEffect(x: scale, y: scale) // <<-- ADDED } .animation(.default) .onAppear { firstString = array[0] scale = scaleEffects[0] // <<-- ADDED let timer = Timer.scheduledTimer(withTimeInterval: 2.0, repeats: true) { _ in if currentIndex == array.count - 1 { self.firstString = array[0] self.scale = scaleEffects[0] // <<-- ADDED currentIndex = 0 } else { self.firstString = array[currentIndex+1] self.scale = scaleEffects[currentIndex+1] // <<-- ADDED currentIndex += 1 } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’24
Reply to iOS 18.3 bata 1?
OK, you think you can manage iOS release planning ? You'll have to wait until Apple decides it is ready for releasing this beta. Are you going to post every week to ask for the next beta ? That's uselessly cluttering this forum. Please avoid such posts. But if you wait for a bata (not beta), you'll have to wait for a very long time. 😀
Dec ’24
Reply to Inform users that they need to delete and reinstall the app
There could be, with some additional development. In the new version, put code to read old data When new app launches, read data. If old data exists, automatically save in a temporary file and convert old data to new structure. delete old data in the app If you cannot convert all data, propose user to save in a file (save temporary file permanently). Otherwise, delete the temporary file. Make sure you test this extensively. It is really a bad user experience to loose data and no way to retrieve. Yo'll have to keep this mechanism in place for a few releases, as users may update only in a future release.
Dec ’24
Reply to Apple Intelligence
Obterá informações oficiais aqui: https://support.apple.com/en-ie/121115#:~:text=For%20European%20Union%20residents%3A%20Apple,is%20also%20in%20the%20EU. Para residentes na União Europeia O Apple Intelligence está disponível com o macOS Sequoia 15.1 ou posterior nos modelos Mac compatíveis. Para o iOS 18.1 e posterior e iPadOS 18.1 e posterior, o serviço Apple Intelligence não funcionará atualmente se estiver na UE e se o país/região da sua conta Apple também estiver na UE. Se viajar para fora da UE, a funcionalidade Apple Intelligence funcionará no iPhone ou iPad se o idioma e o idioma da Siri estiverem definidos para um idioma suportado. Em abril, muitas das principais funcionalidades do serviço Apple Intelligence começarão a ser disponibilizadas aos utilizadores de iPhone e iPad na UE. You'll get official information here: https://support.apple.com/en-ie/121115#:~:text=For%20European%20Union%20residents%3A%20Apple,is%20also%20in%20the%20EU. For European Union residents Apple Intelligence is available with macOS Sequoia 15.1 or later on supported Mac models. For iOS 18.1 and later, and iPadOS 18.1 and later, Apple Intelligence will not currently work if you are in the EU and if your Apple Account Country/Region is also in the EU. If travelling outside of the EU, Apple Intelligence will work on your iPhone or iPad if your language and Siri language are set to a supported language. In April, many of the core features of Apple Intelligence will start to roll out to iPhone and iPad users in the EU.
Dec ’24
Reply to Download Old version of Xcode
If I understand your question, it is not about downloading an old version of Xcode, but having a project opening in an older Xcode version. To do so: in Xcode, select the project in the navigation panel open the Inspectors in Identity and Type inspector, you can select the project Format. Note: I have not tested if you can downgrade to older version.
Dec ’24
Reply to App built with Xcode 16 crashes, worked fine with Xcode 15
You should show how and where tableViewData is initialised. It would help to find which is line 207 in DetailCollectionViewCell.swift: + 312 (DetailCollectionViewCell.swift:207) 2 SulawesiFishIDApp2024.debug.dylib 0x1013507cc @objc DetailCollectionViewCell.tableView(_:numberOfRowsInSection:) 
 In the Protocol: protocol DetailCollectionViewCellDelegate: AnyObject { func detailCollectionViewCell(_ detailCollectionViewCell: DetailCollectionViewCell, didSelectImageAt index: Int) func detailCollectionViewCellDidSelectReefDistributionReport(_ detailCollectionViewCell: DetailCollectionViewCell) func detailCollectionViewCellDidSelectFishbase(_ detailCollectionViewCell: DetailCollectionViewCell) } You do not call tableView(_:numberOfRowsInSection:) But you use it in the extension. We would need to see the complete code to be sure it is the root cause.
Topic: UI Frameworks SubTopic: UIKit
Dec ’24
Reply to App built with Xcode 16 crashes, worked fine with Xcode 15
Most probably, it is an error in your code. Problem comes likely from how tableViewData was declared. Where and how did you define DetailCollectionViewCell tableViewData ?: was it declared as private var ? It should not. How was it initialised ? May be too late and not yet when tableView is called. That could explain the error in iOS 18: you may have made wrong assumptions on the fact that tableViewData would exist at the time tableView function is called. It did work in iOS 17, because system happily let enough time to initialise. But no more in iOS 18 (optimised, or just changed). But that would not be a bug in iOS. Please show more code. It is hard to tell otherwise. And show the part of the crash report dealing with thread 1.
Topic: UI Frameworks SubTopic: UIKit
Dec ’24