Hi, I'm having some trouble when animating my chart with a custom AxisValueLabel. Specifically, as soon as I set its init parameter centered to true, the x axis' leftmost value of the previous dataset sticks around during the animation to the next dataset. Here's a GIF of a screen recording from a minimum reproducible example I built. Keep a close eye on the x axis of the third BarMark, and notice how the 0 from the first BarMark sticks around longer than necessary / intended. While it isn't visible in the GIF, the extra 0 eventually does disappear, but only after the transition if fully complete, making the animation feel distracting and amateur-ish, rather than smooth. This is my code for the x axis. If I turn centered to false, this problem immediately goes away. .chartXAxis { AxisMarks( preset: .aligned, values: .stride( by: .day, count: 1, calendar: .current ) ) { value in AxisValueLabel(centered: true) { Text((value.index)) } } } As you might be able to tell, my x axis is date based, and I'm wo
Search results for
calendar
1,863 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
What is an App? An application, or app for short, is a software application made to carry out particular functions on computers, tablets, and smartphone platforms. Apps can be used for a variety of things, such as productivity and utility, social networking, and entertainment. Usually, people may download and install them with ease via app stores like Google Play or Apple's App Store. Applications can be web-based and accessed via web browsers, or native, designed for a particular operating system. By providing specialised features, they improve the functionality of gadgets and frequently increase efficiency and user experience. The increasing use of mobile technology has made applications essential to both daily life and commercial operations. What are Some Different Types of Apps? Apps are available in many different formats, each with a distinct purpose and user requirement in mind. They might be as basic as productivity-boosting gadgets or as sophisticated as social media platforms or entertainment servic
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags:
[quote='789352022, BabyJ, /thread/756212?answerId=789352022#789352022, /profile/BabyJ'] So you're not using SwiftUI. You should probably place this post in the UIKit topic instead so it's less confusing. In UIKit above property isn't available I believe UIDatePicker has a locale property that you can assign a custom locale to. It will do the same as the SwiftUI solution. If this doesn't work, or you have already tried it, then you need to provide more context and the code you are using so we can understand what is going on. 0 comments [/quote] yes, but if i set custom locale us_POSIX locale for 12 hour and us_GB for 24 hour format. working fine in device use gregorian calendar else datePicker year not showing properly in month & year section like when i use japanese calendar year shows 6 instead of Reiwa 6
Topic:
UI Frameworks
SubTopic:
UIKit
Tags:
[quote='789178022, BabyJ, /thread/756212?answerId=789178022#789178022, /profile/BabyJ'] How are you setting your locale? If you aren't already, you can set it through the environment, like this: DatePicker(...) .environment(.locale, myCustomLocale) You can customise a Locale object with the values you want for specified properties, such as the region or calendar. [/quote] In UIKit above property isn't available
Topic:
UI Frameworks
SubTopic:
UIKit
Tags:
How are you setting your locale? If you aren't already, you can set it through the environment, like this: DatePicker(...) .environment(.locale, myCustomLocale) You can customise a Locale object with the values you want for specified properties, such as the region or calendar.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags:
The format strings are designed for the Gregorian calendar. If this is meant to be shown to the user, you should an appropriate localized format.
Topic:
App & System Services
SubTopic:
General
Tags:
In swift if using custom dateFormat like dd-mm-yyyy and device follows japanese calendar now get dateForm dateFormatter , expected 30-05-Reiwa6. but dateFormatter return string is 30=05-0006
Topic:
App & System Services
SubTopic:
General
Tags:
Swift Student Challenge
Swift
Objective-C Runtime
DatePicker always get timeFormat from device setting, but i need to show time in datePicker based on My app setting not device setting. any solution for this problem I tried to set locale us_POSIX locale for 12 hour and us_GB for 24 hour format this way is work in gregorian calendar , but in japanese calendar not showing year properly like (picker showing 6 instead of Reiwa 6 )
Did you find a solution for this? I have a user experiencing the same on iOS 17.5, on any calendar.
Topic:
App & System Services
SubTopic:
General
Tags:
I am building an application where I need to implement a use case where a local notification is set for a specific date / time (e.g 05/6/24 8 PM) to display to the user (e.g. Take your Meds) and I want him to continue to get that alert every X minutes (e.g. every 2 minutes) until I cancel it (e.g. when the user indicates he has taken his medicene). NOTE: I do NOT want to rely on push notifications from the server for doing the reminders because it needs to work when the device is off the network (like on a plane or a cruise ship in the middle of the ocean or whatever). This would seem to be a pretty common use case, but looking at the previous and existing local notification frameworks, I only see the option to create a calendar based trigger with a boolean repeat (UNCalendarNotificationTrigger) or a time interval based trigger with a boolean repeat (UnTimeIntervalNotificationTrigger), but nothing that combines these in a way that allows me to implement the above stated use case.
Good afternoon, After a long time of using of Macbook security popups with requesting access from apps start appearing For example today I opened vscode to work with nuxtjs and 3 popups appeared: vscode requests access to photos, calendar, contacts, desktop, icloud etc The same happens with PHPStorm. If I open terminal, the same things happen with terminal I haven't installed anything and haven't updated anything Then I decided to update the latest MacOS, thought that it may help, but it didn't help My questions are: How to fix that? All applications even terminal should not have such permission requests Is it a bug and it will be fixed in a patch? Why do these popups always appearing if I clicked Don't allow? OS: MacOs Sonoma 14.5 Mac book Pro 2019
My issue was successfully resolved by the Apple's engineering team. Whole process took about 6-7 calendar weeks and I believe making this forum thread speed it up.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
Just to follow up on this a bit, I did find that Apple apparently changed semantics since the WWDC video was made, and they introduced a DonationTimeRange structure that you can use like this: #Rule(Self.viewedDetails) { $0.donations .donatedWithin(.days(5)) .count > 0 Unfortunately, this doesn't provide a way to achieve what I want for one of my rules, which is to determine if the user has been using the app for at least a calendar day. You might think that you could construct an expression comparing the count of two .donatedWithin ranges: #Rule(Self.viewedDetails) { $0.donations.donatedWithin(.weeks(52)).count > $0.donations.donatedWithin(.days(1)).count But no, you can't. This doesn't work because the #Rule macro explicitly requires a count comparison. If you try to write it as a raw predicate expression, it will compile but assert at runtime. So, at this point, I've given up trying to write the rule that I wanted to write. But perhaps someone will see the question and point out something th
Topic:
App & System Services
SubTopic:
General
Tags:
Consider this: import Foundation func main() { var c = Calendar(identifier: .gregorian) c.timeZone = .gmt let jan2022 = c.date(from: .init(year: 2022, month: 1, day: 1))! let jun2022 = c.date(from: .init(year: 2022, month: 6, day: 1))! let jan2023 = c.date(from: .init(year: 2023, month: 1, day: 1))! let jun2023 = c.date(from: .init(year: 2023, month: 6, day: 1))! let tz = TimeZone(identifier: America/Merida)! for d in [jan2022, jun2022, jan2023, jun2023] { print(tz.isDaylightSavingTime(for: d), tz.daylightSavingTimeOffset(for: d), tz.secondsFromGMT(for: d) / 60 / 60) } } main() On macOS 14.4.1 it prints: false 0.0 -6 true 3600.0 -5 false 0.0 -6 false 0.0 -6 That definitely matches your assertion that this time zone is ‘stuck’ on standard time rather than daylight savings time. However, I’m confused by this assertion: Essentially America/Merida permanently changed to -0500 (CDT) on October 31, 2021 The Wikipedia summary of Mexican time zones suggests that America/Merida is effectively deprecated in fa
Topic:
App & System Services
SubTopic:
General
Tags:
Hello, I'm working on an app that makes use of Screen Time features by leveraging the Family Controls, Device Activity and Managed Settings frameworks. The main app works fine by shielding/unshielding apps with a toggle. When it comes to monitoring the time intervals with the Device Activity Monitor (DAM) extension (e.g. lock X apps for Y minutes), I'm experiencing several issues. To shield/unshield apps and kick off the monitoring I perform the following instructions: let timeInMinutes = 15 let startDate = Date(timeIntervalSinceNow: 1.0) // padding added to avoid invalid DAM ranges < 15 mins. let endDate = startDate.addingTimeInterval(timeInMinutes * 60.0) let components: Set = [.day, .month, .year, .hour, .minute, .second] let calendar = Calendar.current let intervalStart = calendar.dateComponents(components, from: startDate) let intervalEnd = calendar.dateComponents(components, from: endDate) let schedule = DeviceActivitySchedule(intervalStart: intervalStart, intervalEnd: intervalEnd, repeats:
Topic:
App & System Services
SubTopic:
General
Tags:
Family Controls
Device Activity
Managed Settings