Search results for

calendar

1,863 results found

Post

Replies

Boosts

Views

Activity

[iOS18 22A5350a] remove to do list from calendar
I have updated my iPhone SE 2020 with the iOS18 beta, I've been doing this since iOS17. Everything is fine, until I look at my calendar. My to do list is in the calendar, I don't want that, it's a mess, I have 2 daily repetitive to do lists, and my calendar has become a mess, I already have this in the to do list. Does anyone know how I can remove this? I've already gone to setup, there's no option in the calendar, and I couldn't find it in the to do list either. Thank you in advance for your help.
1
0
526
Sep ’24
What's the exact timezone for Financial Reports?
I can get the days included in a monthly financial report by Apple's fiscal calendar - https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/wa/jumpTo?page=fiscalcalendar Example: the period for October 2020 is Start date: 27/09/2020 End date: 31/10/2020 I want to know the date 02/02/2020 means UTC+0 or PST or PDT or any other timezone. Does it related to the region where i am? I noticed that the Sales and Trends Report has exact explanation - https://itunespartner.apple.com/movies/articles/sales-and-trends_reports about timezone, but there is no document for Financial Report.
1
0
1.4k
Nov ’20
Reply to How to add menu items to dock item when app not running
Well, it's all in the title. I want to make a URL history list available on the dock item of my macOS app. I found NSDockTilePlugin but nothing on how to implement it. Can anyone help? First off, are you sure you actually want a NSDockTilePlugin? NSDockTilePlugin is specifically how an app that ISN'T running can update it's dock icon. For example, it's how Calendar is able to show the correct date on it's icon, even when you aren't running. Unfortunately, the dock plugin API is an old loadable plugin API, NOT a modern app extension. They're not allowed in App store apps and are not something I'd recommend creating today. HOWEVER, let me go back to what you said hear: I want to make a URL history list available on the dock item of my macOS app. The key words above where how an app that ISN'T running. If your app is running, then it has full control of everything it puts in the Dock. Your app icon is controlled through NSApplication.dockTile and your windows through NSWindow.dockTile. The NSDockTile cl
Aug ’24
Reply to iOS18 Control Widget dynamic switch intent
What's a ControlWidgetTemplate? I can't find that in the Developer app. The error is because you're returning a ControlWidgetButton in a struct that says it's a ControlWidgetTemplate type. It looks like you just want to return the right 'thing' in the ControlWidget struct. Something like this: (tweak it to get it to do what you want) func chooseControlWidgetContent() -> ControlWidgetButton { if (applaunched) { return ControlWidgetButton(action: Aintent()) { Label(xxxx, systemImage: calendar) } } else { return ControlWidgetButton(action: Bintent()) { Label(xxxx, systemImage: calendar) } } } @available(iOS 18.0, *) struct ControlWidgetContent: ControlWidget { let kind: String = ControlWidgetInterface var body: some ControlWidgetConfiguration { StaticControlConfiguration( kind: kind ) { chooseControlWidgetContent() }.displayName(xxxx) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’24
Reply to Swiftdata with Date
Example: when I'm selecting 2023-08-21, the debugger retrieves me following data: Data selezionata per l'allenamento: 2023-08-20 22:00:00 +0000 Data troncata che verrà salvata: 2023-08-20 22:00:00 +0000 Data che verrà salvata: 2023-08-20 22:00:00 +0000 Allenamento salvato correttamente. The date you see and pick from a date picker is based on the current calendar and timezone on the device, while the debugger prints the date based on UTC timezone, as indicated by +0000. I believe that the current timezone on your device is different from UTC, and that would explain the difference you described. The difference between the values you see in the date picker and the debugger is not really an issue, because that is just two different views of the same value. To give you more context, a Date value is a double value that represents a number of seconds since 1970. Using a variety of calendars, timezones, and locales, an app can convert a Date value to different date strings, or convert a date string
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’24
Swiftdata with Date
Dear all, I'm going out of mind with the following issue. I have a view where I'm selecting a date through a datepicker. Then I'm inserting some other data and then I'm trying to save, see private func saveTraining(). But the date which is used to save the training is always one day before the selected date and more than this, I'm not able to save it without time. As I have then a calendar where the saved trainings need to be displayed, I'm not able to match it. Did anybody already face this issue? How can I solve it? I'm reporting here the code of the view where you can also find the checks I put to verify values/ dates: import SwiftData import AppKit struct AddTrainingView: View { @Environment(.modelContext) private var context @Binding var isAddingTraining: Bool @ObservedObject var season: Season @Binding var selectedDate: Date @State private var trainingStartTime = Date() @State private var trainingEndTime = Date() @State private var trainingConditionalGoal = @State private var trainingTacticalG
3
0
1.6k
Aug ’24
Reply to Date.FormatStyle.Symbol.Hour defaultDigits shows leading zero if amPM is set to .omitted
This is absolutely a bug in Foundation. The documentation and examples both say that the leading 0 shouldn't be included. Until the bug is fixes, the solutions available would be to either do string manipulation or to use a different format style. Each one has their own drawbacks when it comes to internationalization, so deciding which solution to use is a matter of weighing your needs against the drawbacks. 1. Trim Characters Simply check for the existence of a leading 0 character, and remove it if needed. // https://www.hackingwithswift.com/example-code/strings/how-to-remove-a-prefix-from-a-string extension String { func deletingPrefix(_ prefix: String) -> String { guard self.hasPrefix(prefix) else { return self } return String(self.dropFirst(prefix.count)) } } let testDate = try! Date(2024-01-01T10:36:01Z, strategy: .iso8601) let dateString = testDate.formatted(.dateTime.hour(.defaultDigits(amPM: .omitted)).minute()) // 03:36 dateString.deletingPrefix(0) // 3:36 This would only work for locales that use
Topic: App & System Services SubTopic: General Tags:
Aug ’24
Looking for feedback on a Swift dev tool idea
I know this is a more abnormal question to ask on this forum but I really would like to gauge feedback from a community of other Swift developers on an idea. A colleague and I are seriously considering building a open-source web based SwiftUI component catalog that feature a collection of prebuilt modular components very similar to Shadcn for those of you who have worked in React but for SwiftUI where you can also contribute your own SwiftUI elements. Im curious if this would be something iOS/Swift devs would be possibly interested in and would love to hear thoughts on this idea. This is not a component library as Xcode technically has one thats built in, but rather fully built out SwiftUI elements such as UIs that use glass morphism for macOS, calendars for iOS apps, charts, etc.
1
0
576
Aug ’24
Mismatch between DayWeather date and HourWeather date
A year ago I filed feedback FB13055082 about this and I just realized that it was marked as works as currently designed. I need help understanding why this is the expected behavior. For the feedback example I used Nepal, which is +5:45 from GMT. When the UTC offset is not at an hour interval, the dates returned by DayWeather and HourWeather do not match. I’ll request weather with a start date of Aug 25 at 12:0:0 AM GMT+5:45 and end date of Sep 3 at 12:0:0 AM GMT+5:45. The first daily forecast returns a date of Aug 25, 2023 at 12:0:0 AM GMT+5:45, which is what I expect. It's midnight in Nepal and the start of the day. If in my code I call (correct calendar).startOfDay(for: ) I'll also get this same time back. However, the first hourly forecast returned is for Aug 25, 2023 at 12:45:0 AM GMT+5:45 which is NOT the start of the day in Nepal or the start I asked for. It is 45 minutes off. How is the hourly data not starting at the time I requested the expected behavior? Especially when the day data does st
1
0
576
Aug ’24
SwiftUI DatePicker color contrast
Hi! Is there a way to increase the color contrast of the calendar version of the SwiftUI DatePicker? Even with high contrast turned on in the general IOS settings, the contrast between the Sun, Mon, Tue etc and a plain white background is only 3.86:1, which is less than the WCAG AA recommendations of 4:5:1. The contrast with the text for non-selectable dates is even lower. I tried a couple of different options - setting tint, foregroundColor and so on, but they don't change the text color. Thanks in advance!
1
0
982
Jul ’24
Reproduce the apple macos calendar scroll layout
I am trying to recreate the apple calendar in swiftui but I have issues creating scroll layout. So I want to have: When I scroll horizontally the hours on the side have to stay fixed but the header with the day number day String and the full day events have to scroll When I scroll vertically the hours on the side have to move but the header don't For the moment I have : HStack(alignment: .top, spacing:0) { // The hours on the side LateralHours(height: geometry.size.height * 24/10) . offset(y: -offset) ScrollViewReader { proxy in ScrollView (.horizontal, showsIndicators: false) { VStack { // The day number and the full day events Header(width: width) ScrollView { LazyHStack (spacing: 0) { ForEach($loadedDays, id: .self) { day in // The day grid with the events DayContentView( cellHeight: geometry.size.height / 10, width: width, selectedEvent: $selectedEvent, day: day, store: $store, modifiedEvent: $modifiedEvent ) } } .frame(height: 24*geometry.size.height / 10) // This code block is used to track the
3
0
542
Jul ’24
iPhone X restart
bug_type:210,timestamp:2024-06-01 14:21:43.00 +0400,os_version:iPhone OS 16.7.4 (20H240),roots_installed:0,incident_id:2D658 A3E-807D-4239-A262-1560CDB5A77F} { build : iPhone OS 16.7.4 (20H240), product : iPhone10,6, socId : 8015, socRevision : 11, incident : 2D658A3E-807D-4239-A262-1560CDB5A77F, crashReporterKey : b9deae4c29b808d36d6d04c34edc95561cd25808, kernel : Darwin Kernel Version 22.6.0: Tue Nov 7 21:41:17 PST 2023; root:xnu-8796.142.1.702.91/RELEASE_ARM64_T8015, date : 2024-06-01 14:21:43.37 +0400, panicString : panic(cpu 2 caller 0xfffffff01d52a4fc): userspace watchdog timeout: no successful checkins from thermalmonitordnservice returned not alive with context : is_alive_func returned unhealthy : current 7fffffffeff, mask 67fffffffff, expected 67fffffffff. SD: 0 BC: 0 RC: 0 BS: 0, Missing sensor(s): TP0Z nservice: backboardd, total successful checkins in 225 seconds: 17, last successful checkin: 0 seconds agonservice: SpringBoard, total successful checkins in 176 seconds: 15, last successful checkin:
3
0
918
Jul ’24