Posts

Post not yet marked as solved
1 Replies
904 Views
I replicated code in WWDC2023-10043: Meet MapKit for SwiftUI (https://developer.apple.com/videos/play/wwdc2023/10043/ ) and everything worked fine except showing user location with UserAnnotation() which starts at 23:24 of the presentation. Xcode console displays the following error: CLLocationManager(<CLLocationManager: 0x600000008630>) for <MKCoreLocationProvider: 0x600003014510> did fail with error: Error Domain=kCLErrorDomain Code=1 "(null)" The same error happens even with code as simple as the below: import SwiftUI import MapKit struct ContentView: View { var body: some View { Map() { UserAnnotation() } } } Error occurs with Preview, Simulator and iPhone device. Software being used are the latest beta versions: iOS 17 beta 5, Xcode 15 beta 6.
Posted
by mikemjc.
Last updated
.
Post not yet marked as solved
0 Replies
690 Views
My app has the Text views that display the value of variables. Below are two sample pieces of code and the String Catalog (Localizable.xcstrings) entries created when app builds: (1) Code: Text("[ (var1) ]") Key: [ %@ ] Default: [ %@ ] Spanish: [ %@ ] (2) Code: Text("(var2) - (var3) - (var4)") Key: %@ / %@ / %@ Default: %1$@ / %2$@ / %3$@ Spanish: %1$@ / %2$@ / %3$@ Each of the 4 vars have a discrete number of known possible values. How do I enter the possible var values and their associated Spanish translations in the String Catalog?
Posted
by mikemjc.
Last updated
.
Post not yet marked as solved
0 Replies
316 Views
iOS application summary: (1) Single full-screen showing card from array of cards (2) 2 buttons: Next and Prior -- to advance forward and backward through array of cards (3) Picker control that allows for new set of cards where different picker selection options trigger differ subsets of full card array. .pickerStyle(.menu) is being used Voice Control works fine when app starts -- "Tap Next" and "Tap Prior" move the displayed card from the array forward and backward Problem when new picker selection is made with .pickerStyle(.menu): (1) First card from new array shows correctly (2) Voice Control (e.g. "Tap Next") does not function until screen is physically touched (does not matter where screen is touched) (3) Voice Control works just fine when .pickerStyle is changed from .menu to either .inline or .wheel Picker code: Picker("Cards", selection: $selectedCards) { Text("All Cards").tag(Strings.all) Text("2345 Cards").tag(Cards.twoThruFive) Text("1st Cards").tag(Cards.one) Text("2nd Cards").tag(Cards.two) Text("3rd Cards").tag(Cards.three) Text("4th Cards").tag(Cards.four) Text("5th Cards").tag(Cards.five) Text("6th Cards").tag(Cards.six) } .pickerStyle(.menu) .onChange(of: selectedCards) { tag in switch tag { case .all: cardsViewModel.newAllStrings() case .twoThruFive: cardsViewModel.new2345Cards() case .one: cardsViewModel.newOneCards() case .two: cardsViewModel.newTwoCards() case .three: cardsViewModel.newThreeCards() case .four: cardsViewModel.newFourCards() case .five: cardsViewModel.newFiveCards() case .six: cardsViewModel.newSixCards() } }
Posted
by mikemjc.
Last updated
.