Post

Replies

Boosts

Views

Activity

Reply to Don't do the 18.0 update
Read here: https://www.reddit.com/r/iOSBeta/comments/1di0gub/ios_18_db1_empty_calendar/ I powered off my phone and it fixed the problem! Hope that works for you as well. If not working, may have a look here: https://www.youtube.com/watch?v=h0VPocWXc9g
Oct ’24
Reply to iOS 18.1 issues
Welcome to the forum. Your question is not about app development. So you'd better ask on Apple Support Community: https://discussions.apple.com/welcome Or file a bug report here: https://feedbackassistant.apple.com and provide as miuch information as possible on your iPhone configuration. You're not the only one experiencing issue, so multiple bug report may help speed up the correction.
Oct ’24
Reply to Ios 18.1 bug, fix asap
Welcome to the forum. Your question is not about app development. So you'd better ask on Apple Support Community: https://discussions.apple.com/welcome Or file a bug report here: https://feedbackassistant.apple.com You wrote:  a screen randomly pops up which screen ? random or always the same ?
Oct ’24
Reply to iOS 18 calculator functions
Welcome to the forum. Your question is not about app development, it is about app usage. So you'd better ask on Apple Support Community: https://discussions.apple.com/welcome Or file a bug report here: https://feedbackassistant.apple.com Don't forget to close the thread by marking the correct answer.
Oct ’24
Reply to Cannot convert value of type '[Lesson]' to expected argument type 'Binding<C>' and Generic parameter 'C' could not be inferred
Another thing. If you don't want to select from List but just display the current lesson, build other computed varsity, such as these: /* @State private */var currentLesson: String { // = "Przerwa" for lesson in testData { if lesson.startTime <= liveHourString && lesson.endTime >= liveHourString && lesson.dayOfWeek == liveWeekdayString { var components = Calendar.current.dateComponents([.year, .month, .day, .hour, .minute], from: todaysDate) let hhmm = lesson.startTime.split(separator: ":") components.hour = Int(hhmm[0]) components.minute = Int(hhmm[1]) return lesson.name } } return "" } /* @State private */var currentLessonStart : Date { // = Date() for lesson in testData { if lesson.startTime <= liveHourString && lesson.endTime >= liveHourString && lesson.dayOfWeek == liveWeekdayString { var components = Calendar.current.dateComponents([.year, .month, .day, .hour, .minute], from: todaysDate) let hhmm = lesson.startTime.split(separator: ":") components.hour = Int(hhmm[0]) components.minute = Int(hhmm[1]) return Calendar.current.date(from: components)! } } return Date() // If not found }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
Reply to Cannot convert value of type '[Lesson]' to expected argument type 'Binding<C>' and Generic parameter 'C' could not be inferred
You have other errors in your code. liveHourString is declared twice currentLessonStart not defined startTime is a String in testData, but should be a Date You should change currentLesson when you tap a lesson in List, not in the loop NavigationView { List(lessons) { lesson in if lesson.dayOfWeek == todaysDate.formatted(Date.FormatStyle().weekday(.wide)) { VStack(alignment: .leading){ Text(lesson.name) .onTapGesture { currentLesson = lesson.name currentLessonStart = lesson.startTime // Once you have defined a State variable for currentLessonStart as a Date var } You could also use computed var to initialise lessons: struct ContentView: View { // var lessons: [Lesson] = [] var liveHourString : String { todaysDate.formatted(date: .omitted, time: .shortened) } var liveWeekdayString : String { todaysDate.formatted(Date.FormatStyle().weekday(.wide)) } var lessons: [Lesson] { var listOfLessons : [Lesson] = [] for lesson in testData { if lesson.startTime <= liveHourString && lesson.endTime >= liveHourString && lesson.dayOfWeek == liveWeekdayString { // currentLesson = lesson.name // YOU Cannot change the State var here // currentLessonStart = lesson.startTime } listOfLessons.append(lesson) } return listOfLessons }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
Reply to Apple Watch logo requirements for app's notifications
there is no watchOS target I did not include watchOS app icons in Assets I do not see it in Assets>AppIcon. I only see it when there is a WatchOS companion app, in the watch Assets. Where do you see it to be provided ? In an app with similar situation, I provided all sizes of icons and did not notice issue. What app icons have you provided in Assets ? May be you could try with a unique 1024*1024 ?
Topic: Design SubTopic: General Tags:
Oct ’24
Reply to Cocoa application duplicated view
Welcome to the forum. If I understand, you create the imageView a first time by MyView *customView = [[MyView alloc] init]; as init calls initWithFrame which itself adds the imageView and a second time with [self.view addSubview:customView]; Try removing this second one. Does it work ?
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’24
Reply to grid and buttons
Welcome to the forum It's difficult to understand what is the problem.   D should occupy the space occupied by the two buttons at the top A and B What does it mean ? That's not what the drawing shows Anyway, looking at the drawing, you have several ways: if you use storyboard (UIKit), it is very easy to position the buttons in a view, either in absolute coordinates or with constraints settings. you can also create buttons in code setting the correct frame you could also use a grid, but it is over complex for such a simple thing If you use SwiftUI , you create 2 HStacks, containing A, B, C and the second D, E ; then you encapsulate them in a VStack ; code would look like VStack { Spacer() HStack { Spacer() Button { A } Spacer() Button { B } Spacer() Button { C } Spacer() } Spacer() HStack { Spacer() Button { D } Spacer() Button { E } Spacer() } Spacer() } So please explain clearly what you do not know how to do.
Topic: UI Frameworks SubTopic: SwiftUI
Oct ’24
Reply to MacOS
Since when can we not publish apps developed in beta environments Since the beginning. What is the issue using the most recent release ? Reason for not allowing beta is to avoid later bugs (which should be corrected in release) due to issue in the beta development environment. That's a safe policy IMHO.
Sep ’24
Reply to Where is my "EU Trader Status" information displayed and who can see it?
AFAIU, it will be posted in the Appstore in the countries where DSA is applicable (EU). Apple will publish this information in the App Store in certain countries or regions. Here some examples (in French): https://www.igen.fr/app-store/2024/03/dsa-les-pages-de-lapp-store-affichent-de-nouvelles-infos-de-contact-des-developpeurs-142709 You should contact Apple support to see if possible and how to remove these information.
Sep ’24
Reply to XCode or IOS 18 Bug?
Does it work in Xcode 15 with iPhone 15 pro Max ? Or in other simulators with Xcode 16 ? There was something a bit similar, in SwiftUI: https://developer.apple.com/forums/thread/763158
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’24