Posts

Post not yet marked as solved
1 Replies
0 Views
You refer to material that you do not show on the forum. So I understand this is a question for Apple Review. In such a case, the forum is not the right place to ask. Better contact Apple support (Contact us link at the bottom of this page).
Post not yet marked as solved
1 Replies
0 Views
Yes, you can install directly from Xcode to you iphone, without paying subscription. Connect your iPhone in USB select it instead of selecting a simulator You need to register your iPhone to Xcode Note that you will have to reload regularly (once a week if I remember correctly).
Post not yet marked as solved
1 Replies
0 Views
Add .onDelete modifier: struct ScrumsView: View { @Binding var scrums: [DailyScrum] @State private var isPresentingNewScrumView = false @State private var newScrumData = DailyScrum.Data() var body: some View { List { ForEach($scrums) { $scrum in NavigationLink(destination: DetailView(scrum: $scrum)) { CardView(scrum: scrum) } .listRowBackground(scrum.theme.mainColor) } // <<-- ADD THE FOLLOWING .onDelete { indices in scrums.remove(atOffsets: indices)} }
Post not yet marked as solved
1 Replies
0 Views
Could you show the code that does not work in iOS 16 ? And tell what you get, what you expect ? Neither button.title(for: .normal) nor setTitle(nil, for: .normal) have neen obsoleted. To use configuration, just do this: var configuration = UIButton.Configuration.filled() configuration.title = "Title" // Or nil here is you need configuration.subtitle = "Subtitle" configuration.image = UIImage(systemName: "swift") let button = UIButton(configuration: configuration, primaryAction: nil) Get sample code here: https://sarunw.com/posts/new-way-to-style-uibutton-in-ios15/ or here: https://www.raywenderlich.com/27854768-uibutton-configuration-tutorial-getting-started To set up depending on state resuires to write a handler: https://sarunw.com/posts/dynamic-button-configuration/ To test title according to state: let configuration = button.configuration if button.state == .normal && configuration.title == nil { }
Post not yet marked as solved
1 Replies
0 Views
Please be more precise. ForEach function seems to make it so it cannot read data from my DataBase Which ForEach loop (not a function) ? How is data populated ? Are you sure data is not empty when you call in ForEach loops ?
Post not yet marked as solved
2 Replies
0 Views
You can compute it: if the sphere is full, the weight is Volume * specific weight, where Volume = 4/3 * pi * RRR if sphere is empty with d thickness (d smal compared to R): weight is Surface * d * specific weight, where Surface = 4* pi * R*R You can find specific weight in many places on Internet.
Post marked as solved
2 Replies
0 Views
Even without doing anything but launch app, it crashes after a few seconds: 2022-07-16 14:28:21.799258+0200 CustomNumpad[10734:1005077] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600002aa4e20> F8BB1C28-BAE8-11D6-9C31-00039315CD46 2022-07-16 14:28:30.771818+0200 CustomNumpad[10734:1005242] [] [14:28:30.771] CMSampleBufferSetDataFailed signalled err=-12744 (kCMSampleBufferError_Invalidated) (sbuf invalidated) at FigSampleBuffer.c:3836 Please first fix this crash before we can investigate more.
Post marked as solved
2 Replies
0 Views
Please use code formatter when you paste code: struct ContentView: View { @State var PurchaseDate = Date.now @State var Months: Int = 0 // Date picker. Here I select a date var body: some View { VStack(alignment: .leading){ DatePicker("Date of Purchase", selection: $PurchaseDate, in: ...Date(), displayedComponents: .date) Spacer() // Here we assign today's date let date = Date() let dateDiff = Calendar.current.dateComponents([.month], from: PurchaseDate, to: date) let Months = dateDiff.month // In the next line of code, I want to display months in integer, but I get the error Text("$(Months)") // On this line display error message is "No exact matches in call to instance method 'appendInterpolation'" Spacer() } } } So change with:             Text("\($Months.wrappedValue)") However, what do you want to show: the state var or the new computed Months ? If so, use             Text("\(Months)") Notes: in Swift, var names should start with lowerCase it is a bad idea to recreate a var or const with the same name as another existing (here Months) finally, there seems to be a bug in SwiftUI, where DatePicker doesn't update correctly the state var. See how to solve here: https://stackoverflow.com/questions/61616452/swiftui-datepicker-does-not-always-update-statedate-variable
Post not yet marked as solved
1 Replies
0 Views
It says click here to add properties Who is It ? Where is here ? Please be more explicit.
Post not yet marked as solved
1 Replies
0 Views
Have you checked the entitlements ? Do they differ from the published version ? Error advise to wait for up to 2 days ? did you wait for 2 days. In addition, I'm not sure to interpret correctly the message: The entitlement data used to verify deep link dual authentication is from the current released version of your app. This data may take 48 hours to update. Does it mean that you have to publish, wait for 48 hours, then deep links should work ? Also found this on S.O. which may help. https://stackoverflow.com/questions/40087119/no-apps-with-domain-entitlements
Post not yet marked as solved
3 Replies
0 Views
Xcode 14 beta 3 requires a Mac running macOS Monterey 12.4 (Monterey) or later. Normally, Monterey can be installed on MacBook Pro models from early 2015 or later.
Post marked as solved
4 Replies
0 Views
You should have todl you access with developer app… I copied at 28'49" struct Icon: View { let systemSymbolName: String let color: Color let shadow: ShadowStyle var foregroundColor: Color = .white var body: some View { VStack { Image(systemName: systemSymbolName) .resizable() .aspectRatio(1.0, contentMode: .fit) .padding(2) } .background(in: Circle().inset(by: -20)) .backgroundStyle( color .gradient ) .foregroundStyle(foregroundColor.shadow(shadow)) .padding(20) } } private let dropStyle = ShadowStyle.drop(radius: 1, y: 1.5) private let innerStyle = ShadowStyle.inner(radius: 1.5) let icons: [Icon] = [ Icon(systemSymbolName: "person", color: .red, shadow: dropStyle), Icon(systemSymbolName: "basketball", color: .orange, shadow: dropStyle), Icon(systemSymbolName: "globe.central.south.asia", color: .yellow, shadow: innerStyle), Icon(systemSymbolName: "carrot", color: .green, shadow: innerStyle, foregroundColor: .orange), Icon(systemSymbolName: "sailboat", color: .mint, shadow: innerStyle), Icon(systemSymbolName: "figure.open.water.swim", color: .teal, shadow: dropStyle), Icon(systemSymbolName: "ladybug.fill", color: .cyan, shadow: innerStyle), Icon(systemSymbolName: "calendar", color: .blue, shadow: dropStyle), Icon(systemSymbolName: "moon.stars", color: .indigo, shadow: dropStyle), Icon(systemSymbolName: "brain.head.profile", color: .purple, shadow: innerStyle), Icon(systemSymbolName: "birthday.cake", color: .pink, shadow: dropStyle), Icon(systemSymbolName: "house.circle.fill", color: .white, shadow: dropStyle), Icon(systemSymbolName: "lizard", color: .brown, shadow: dropStyle), Icon(systemSymbolName: "flag.checkered", color: .black, shadow: dropStyle), Icon(systemSymbolName: "character.book.closed", color: .gray, shadow: dropStyle), ] struct IconGrid: View { var body: some View { Grid(horizontalSpacing: 16, verticalSpacing: 16) { ForEach(0..<3) { i in GridRow { ForEach(0..<5) { j in icons[i * 5 + j] } } } } .background(.black.opacity(0.8)) } } And at 32'04": but this is too much, so I copy in attached file. At 32.04 I do not understand the problem you have…
Post marked as solved
4 Replies
0 Views
How could we help with so little information ? Which WWDC presentation ? Which code is copied without problem Which other is not copied ?
Post marked as solved
3 Replies
0 Views
It works ? Good. But forcing unwrap is always risky: You'd better test: guard var config = cell?.defaultContentConfiguration() else { return UITableViewCell() } Question: why don't you use dequeue with indexPath .         let cell = tableView.dequeueReusableCell(withIdentifier: "reuse", for: indexPath)