Create elegant and intuitive apps that integrate seamlessly with Apple platforms.

All subtopics

Post

Replies

Boosts

Views

Activity

Help Needed with SwiftUI: Custom Button Animation Issue
I’m trying to create a custom animation for a button in SwiftUI, but the animation doesn’t seem to trigger properly when the button is pressed. I’ve followed the standard approaches using withAnimation, but the button only occasionally animates. Has anyone encountered this issue? Are there specific guidelines or common pitfalls in SwiftUI for button animations that I might be missing? Any insights would be appreciated!
0
0
199
Oct ’24
AreaMark Always alignsMarkStylesWithPlotArea for linear gradients
I'm trying to make a Swift Chart where 24 AreaMarks an hour apart on X axis over a day display a vertical gradient. The gradient is vertical and is essentially [Color.opacity(0.1),Colour,Color.opacity(0.1] The idea here is where the upper and lower points of each AreaMark are the same or close to each other in the Y axis, the chart essentially displays a line, where they are far apart you get a nice fading vertical gradient. However, it seems that the .alignsMarkStylesWithPlotArea modifier is always set for AreaMarks even if manually applying it false. Investigating further, I've learnt that with AreaMarks in a series, Swift Charts seems to only listen to the first foreground style set in. I've created some sample code to demonstrate this. struct DemoChartView: View { var body: some View { Chart { AreaMark(x: .value("Time", Date().addingTimeInterval(0)), yStart: .value("1", 40), yEnd: .value("2", 60)) .foregroundStyle(LinearGradient(colors: [.pink, .teal], startPoint: .top, endPoint: .bottom)) .alignsMarkStylesWithPlotArea(false) AreaMark(x: .value("Time", Date().addingTimeInterval(3600)), yStart: .value("1", 44), yEnd: .value("2", 58)) .foregroundStyle(LinearGradient(colors: [.orange, .yellow], startPoint: .top, endPoint: .bottom)) .alignsMarkStylesWithPlotArea(false) AreaMark(x: .value("Time", Date().addingTimeInterval(03600*2)), yStart: .value("1", 50), yEnd: .value("2", 90)) .foregroundStyle(LinearGradient(colors: [.green, .blue], startPoint: .top, endPoint: .bottom)) .alignsMarkStylesWithPlotArea(false) } } } Which produces this: So here, all the different .foregroundStyle LinearGradients are being ignored AND the .alignsMarkStylesWithPlotArea(false) is also ignored - the amount of pink on the first mark is different to the second and third 🤷‍♂️ Has anyone encountered this. Are AreaMarks the correct choice or are they just not setup to create this type of data display. Thanks
2
0
435
Oct ’24
IOS 18 App Icon Photoshop Template Won’t Work
I can’t figure out how to make the iOS 18 photoshop template for app icons work. In the past, each variant of the icon size was an editable layer you could open up, change and save. In this one, only the large App Store icons are editable. So I thought maybe if I put my icon in the App Store layer, the smaller icons would automatically scale and fill in. But they don’t. When I checkmark the generate assets option, it generates all the icon files, but all of them are blank, except for the App Store one. I don’t really want the smaller icons to just automatically scale down anyway; I would rather have them be fine-tuned by hand so that they look good at all sizes. I used the sketch template in a free trial of sketch and it automatically scaled and generated all of the icon sizes, as expected. But I don’t own sketch; I use Photoshop and Illustrator for all of my work. I’ve always been able to use the template in the past; it’s only this year‘s iOS 18 version that isn’t working for me.
2
1
547
Oct ’24
App Rejection 4.3 Spam
Greetings, We have been rejected in the review of our App for a code non-compliance with 4.3 Design guidelines. Our App appears to be similar to others, and indeed it is similar in functionality and appearance. The others that are similar have been developed by us as well, these being customisations that are specifically targeted at the companies or accounts we deal with. The truth is that we have gone through several reviews of the other Apps before when we submitted them for publication at the time. We know that there are other development companies that customise Apps for different brands and in these cases there has been no reason for rejection by the Apple Store. We are beginning to think that there may be certain factors that are directly influencing the rejection of this App: The mockups or screenshots we are using are similar to those of another App we have published with the same functionalities. The backgrounds of the App have a gem of colours similar to that of the other App. And now we wonder: Is it possible that he rejected it solely because of design issues with the presentation screenshots and backgrounds of the App? Apart from the appeal that can be submitted to the Store via the review form, is there any way to contact Apple by phone to determine exactly why the App was rejected? How do other companies upload the same custom App and get it reviewed?
0
0
378
Oct ’24
SanDisk External Drive Not Recognized Properly on iPhone 16 Pro with iOS 18.1, Works Fine on iPad
I am using iOS 18.1 on an iPhone 16 Pro. Although I am using a SanDisk external hard drive, the iPhone’s Files app is not recognizing the drive properly, and video files are not playing well. However, everything works fine on my iPad. Could this be an issue with the iPhone's OS?I am using iOS 18.1 on an iPhone 16 Pro. Although I am using a SanDisk external hard drive, the iPhone’s Files app is not recognizing the drive properly, and video files are not playing well. However, everything works fine on my iPad. Could this be an issue with the iPhone's OS?
1
1
377
Oct ’24
Apple maps trail / local path only becomes visible on very close zoom
I'm using apple maps to build a feature so users can create and save running/cycling/hiking routes. Currently the map only shows trails and similar local paths after zooming in to what is basically an extreme level. I want the trails and local paths to be more visible on a further, broader level of zoom. APPLE MAPS JS EX: https://trkbucket.s3.amazonaws.com/media/shoe_images/Screenshot_2024-10-23_at_10.52.17AM.png https://trkbucket.s3.amazonaws.com/media/shoe_images/Screenshot_2024-10-23_at_10.52.04AM.png APPLE MAPS iOS EX: https://trkbucket.s3.amazonaws.com/media/shoe_images/IMG_9DDF5C9A320D-1.jpeg Also strange that on iOS the path is visible while more zoomed out whereas JS does not. Please advise how to show these map items at a broader zoom.
1
0
392
Oct ’24
Is there any way to write a screensaver for macOS using Python Pygame?
I want to be able to write a cross-platform screensaver that works on both Windows and macOS using the Pygame 2D graphics library in Python. On Windows, this is super easy - you just write your program with three possible command line arguments: /p for preview mode, /c for the configuration dialog mode, and /s for the actual full-screen screensaver mode. Then you just use pyinstaller to build an .exe file and rename the extension to .scr, and you're good to go. However, it seems that making a screensaver on macOS is a pretty convoluted process, and there was stuff about specific Objective-C functions that you had to write, and I didn't really understand the documentation. Could you please tell me if there is any way to simply get my Python Pygame program to build as a proper .saver file? Thanks!
2
0
492
Oct ’24
Text with standard font style appears smaller on iPadOS than on iOS
I used standard font styles in an iOS app. For example .font(.headline). I hoped that developing this way would allow the adoption of the app to other platforms, relatively easy. However, when trying to run for iPadOS, the text did not increase in size to occupy the more abundant space offered by larger screen, but it actually shrank. Overall, the app does not look great "automatically". Why does it happen? What is the best practice for cross platform development with SwiftUI (with regards to font sizes). I want to make as little as possible human interface design decisions on my own and just let SwiftUI take care of everything. (But I also want the results to look as Apple would consider great looking)
0
0
316
Oct ’24
A phone keyboard layout for easy typing!
Last November 13 I came up with a phone keyboard layout (strategy) that can make key size bigger hence less mistyping. The typical phone keyboard looks like this: My proposed keyboard looks like this: Essentially, it's a split keyboard with the left-hand part stacked above/below the right-hand part. Key size/width/height and the vertical distance between the left-hand part and right-hand part may be adjustable to suit different phone widths and user hand sizes. You guys can show the proposed keyboard's image on your phone and fit this keyboard to your phone width so you can actually simulate typing on it to see how it feels. On my phone, the letter keys in it are a little too big for my thumbs to reach the farthest keys, but as I said, key size should be adjustable to suit different phone widths and user hand sizes.
0
0
457
Oct ’24
使用登录API模拟登录appstoreconnect后台是报503错误
URL:https://idmsa.apple.com/appleauth/auth/signin Header: { Accept=application/json, text/javascript, /; q=0.01, X-Requested-With=XMLHttpRequest, origin=https://idmsa.apple.com, Connection=keep-alive, Referer=https://idmsa.apple.com/, User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36, Host=idmsa.apple.com, Accept-Encoding=gzip, deflate, br, X-Apple-Widget-Key=e0b80c3bf78523bfe80974d320935bfa30add02e1bff88ec2166c6bd5a706c42, pragma=no-cache, X-Apple-Domain-Id=3, Accept-Language=zh-CN,zh;q=0.9, Content-Type=application/json } Response:503 Service Temporarily Unavailable 麻烦请尽快解决这个问题,这影响了我们的自动化构建流程!
1
0
456
Oct ’24
Safari 18.0.1 MacOS Sequoia 15.0.1 Issue when viewing tables
I have a website that uses tables for listing our certifications. A customer is complaining that on their browser, the contents of the tables are being viewed upside down. They should be showing vertically. This is not happening on any other browser that I have tested. Has anyone had this issue and what did you do to fix it. https://www.mccampbell.com/statement.php Thank you for your help. Much appreciated. Lynda
0
0
372
Oct ’24
Rejected Due to 4.3(a) Design - Spam
Hello everyone, I updated a new version to fix bugs and add more levels, but Apple rejected it citing spam design 4.3(a). Everything in the game is created by my team, and we did not copy or imitate any other product. We discovered that a studio has unpacked our game and stolen all our images, sounds, and many other files, even the file names match ours. Our game was released over a month before theirs, while they just released their first version a week ago. Despite being the original version, our game was rejected for spam. Currently, our game is generating $10k daily in IAP and we are spending a lot on ads. We are in urgent need of updating the game. I’m really frustrated that this issue has not been resolved yet. I have submitted all the information and evidence to the Apple Review Board, but I haven’t received any response so far.
1
1
418
Oct ’24
How do I use the Figma macOS Sequoia UI Kit?
Question: Guide for Using Apple's macOS Sequoia UI Kit in Figma? I recently discovered that Apple has published a "macOS Sequoia UI Kit" on their Figma profile: https://www.figma.com/@apple As someone new to both UI kits in Figma and Mac app development, I'm looking for guidance on how to use this UI kit when designing a Mac app. Does anyone know if such a resource exists? I haven't been able to find one so far. Background I started developing a new macOS app about a month ago and have a basic working version with early functionality. I've realized I need to take a step back and create visual prototypes to inform where to invest future development time. The Sequoia UI Kit seems like it could be helpful, but I'm unsure how to use it. iOS but not macOS There are several tools available for designing iOS apps: https://createwithplay.com/ https://www.judo.app/ https://detailspro.app/ However, I'm not aware of similar tools specifically for macOS application design. Direction Apple publishes design UI kits for both Figma and Sketch. I want to avoid paying for Sketch (this is a hobby project), so I'm focusing on the Figma option. Ideally, I'd love to see the iOS-focused tools mentioned above support macOS design fully. Until then (if ever), I'm hoping to make the most of the Sequoia UI Kit in Figma. Any guidance or resources would be greatly appreciated!
0
0
591
Oct ’24
Is it mandatory for gambling apps to provide guest login functionality?
Hello everyone, I am currently developing a gambling app and would like to ask if anyone has relevant experience or knowledge regarding whether it is necessary to require users to log in immediately when launching the app? Or is it permissible to offer a "guest mode" for users to try out the app before requiring them to log in? Does this comply with the policies of Apple or Google Play? Thank you all for your guidance!
0
0
264
Oct ’24
Applying Custom Rounded Corners to a macOS Window
Which method allows me to apply larger-than-default rounded corners to a macOS window while maintaining the system’s dynamic, contrasting border – similar to what’s seen in the Control Center popup? (Control Center has a corner radius of 16, the default system window is 10.) While I know how to closely achieve this effect manually for my plain panel, I'd like to leverage the built-in method and get it for free from the OS. I’ve spent way more time on this problem than I'm willing to admit, and searched extensively, but haven’t found any solution. I’d really appreciate any pointers. Thank you.
4
2
839
Oct ’24
Elevated TabBar in iPadOS 18 covers Navigation-/Toolbar
The new "elevated" tab bar in iPadOS 18 covers the Navigation-/Toolbar of views within. A very simple example: import SwiftUI @main struct SampleApp: App { @State var selection: Int? var body: some Scene { WindowGroup { TabView { NavigationSplitView { List(0..<10, selection: $selection) { item in Text("Item \(item)") .tag(item) } } detail: { if let selection { Text("Detail for \(selection)") .navigationTitle("Item \(selection)") .navigationBarTitleDisplayMode(.inline) } else { Text("No selection") } }.tabItem { Label("Items", systemImage: "list.bullet") } Text("Tab 2") .tabItem { Label("Tab 2", systemImage: "list.bullet") } Text("Tab 3") .tabItem { Label("Another Tab", systemImage: "list.bullet") } } } } } I've tried using .safeAreaInset/.safeAreaPadding for the detail views, but they don't affect the NavigationBar, only the content within. Is there a way to move the NavigationBar down, so its items stay visible?
1
0
461
Oct ’24
Max OS X App Bundle Framework folder
Hi, the documentation says that an application bundle for Mac OS X can have a Frameworks folder within Contents. Using a framework for console applications (no bundle) and GUI applications (bundle), I cannot load the console applications anymore on Ventura. Prior to Ventora I have tested and ran both on Mojave or earlier - I am not sure. To fix the issue, I have moved the frameworks within the application bundle to match the rpath for /Users/lothar/Library/Frameworks when I place the console into /Users/lothar/bin, the same rpath for application bundles works for those within the bin folder. Can I publish an application bundle with that modified layout or do I have to expect getting problems and do rather a Symlink pointing from /Users/lothar/Frameworks to /Users/lothar/Library/Frameworks? Thanks, Lothar
1
0
508
Oct ’24