Is there a reason why the active mute indicator is different between CarPlay and iPhone? The iPhone active mute indicator is a button with a white background and a red icon whereas the CarPlay active mute indicator is a button with a white background and black icon.
We make a CallKit app that supports CarPlay and that's how this was noticed, however the Apple phone app behaves the same. I suspect this is intentional as to cut down on distractions for drivers.
Any further explanation would be appreciated.
Thanks
General
RSS for tagExplore the art and science of app design. Discuss user interface (UI) design principles, user experience (UX) best practices, and share design resources and inspiration.
Post
Replies
Boosts
Views
Activity
I have a watchOS app written in C++, Swift and SwiftUI. This app is meant only for 64-bit architecture. I know Apple uses the arm architecture, so I thought arm64 will be the arch of latest AppleWatches.
I tested my code in x64 simulator (Intel Mac) and arm64 simulator (silicon Mac) - no trouble. Next is to test on a device - AppleWatch Series 9, model: A2984. I set the arch to arm64 and my application failed to build, with Xcode showing a popup about arch mismatch... which is due to the app's arch begin different from device's arch. When I change Xcode arch setting to arm64_32, then I don't get this popup, but my builds fail. When I read about arm64_32, I realised that this is a version of arm64 with 32 bit pointers... not the arm64 with 64 bit pointers.
Looking at the specification of AppleWatch Series 9, Apple has confirmed that it has 64 bit CPU, but the instruction set is unknown. This wiki page about different AppleWatch CPUs is marked TBC for AppleWatch Series 9. From Xcode, I got to know that this unconfirmed arch is arm64_32. This completely breaks my code. Are there any 64-bit watches with 64-bit pointer sizes? What is Apple's future in this area? Do they plan to release AppleWatches that support 64-bit pointers or it's always going to be 32?
Hello everyone, for a personal project I'd like to reproduce a design element from Apple's saving application.
I'd like to display three rectangles containing text: two horizontally aligned and one next to it. And I'd like the height of the last rectangle to be equal to the height of the two smallest.
Does anyone have a solution? Please provide a sample code
Hi,
I face problem when I compiler one project in xcode, such as can not accessible path, although I use administrator account, is there suggestion for the condtion? Thanks.
brand new newbie developer to xcode. so im doing an api call and getting back data from a mysql database. in the xcode preview window im getting data, but i cant figure out how to tie it to the screen when going into the simulator. i have screen 1 that i want to click a button to go to screen 2 that displays the data. screen one (home screen) comes up okay. cant quite figure out what im doing wrong here. im thinking its either a class issue or something to do with view or something. not sure. ive tried looking at so many different videos and i cant seem to find my answer. Any help would be appreciated. thank you
View Controller:
import UIKit
//import SwiftUI
let URL_TOURNAMENT_FETCH = "https://www.thesoftball.com/t2g_mobile_app/mobile_api.php"
class ViewController: UIViewController
{
override func viewDidLoad()
{
super.viewDidLoad()
}
@IBAction func onEmailButtonPressed(_ sender: Any)
{
UIApplication.shared.open(URL(string: "mailto:[email]")! as URL, options: [:],completionHandler: nil)
}
/*
@IBAction func FetchTournButton(_ sender: Any) {
UIApplication.shared.open(URL(string: "https://www.thesoftball.com/t2g_mobile_app/mobile_api.php")! as URL, options: [:],completionHandler: nil)
}
*/
@IBAction func ViewTournamentButton(_ sender: Any)
{
// the following is a popup
let alertController = UIAlertController(title: "Welcome to My First App", message: "Hello World", preferredStyle: UIAlertController.Style.alert)
alertController.addAction(UIAlertAction(title: "OK", style: UIAlertAction.Style.default, handler: nil))
present(alertController, animated: true, completion: nil)
}
@IBAction func account_button_pressed(_ sender: Any)
{
UIApplication.shared.open(URL(string: "https://www.thesoftball.com")! as URL, options: [:],completionHandler: nil)
}
/*
struct viewDidLoadModifier: viewDidLoadModifier
{
@State private var didLoad = false
private let action: (() -> void)?
init(perform action)
{
}
}
*/
}
ContentView (preview works in this)
import SwiftUI
struct ContentView: View {
@StateObject var viewModel = ViewModel()
var body: some View {
NavigationView{
List{
ForEach(viewModel.courses,id: \.self) { tournament in
HStack {
Image("")
.frame(width: 5, height: 120)
.background(Color.orange)
VStack {
Text(tournament.name).bold()
Text(tournament.dates)
Text(tournament.datee)
Text(tournament.location)
// Text(course.location)
// Text(course.message)
// .bold()
}
}
.padding(0)
}
}
.navigationTitle("Tournaments")
// .onAppear { viewModel.fetch()}
.onAppear(perform: viewModel.fetch)
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Why? What’s the downward risk to allowing the option? A lot of consumers love these widgets.
I think a good choice would be that apps that made from apple to be circle
I see that iOS 18 has tinted app icons. Does anyone know what will happen if we choose not to provide a version of our icon for tinting?
Having a traditional 'NavigationSplitView' setup, I am looking for a way to animate it the same as the sidebarView, where there is a button to toggle and it animates by sliding out from the right side of the view, however the closest I have gotten was manipulating the 'navigationSplitViewColumnWidth' but that always results in the view instantly appearing / disappearing.
I am using SwiftUI for a MacOS specific app.
Here is just a general idea of what I am currently doing, it is by no means a reflection of my real code but serves the purpose of this example.
struct ContentView: View {
@State private var columnWidth: CGFloat = 300
var body: some View {
NavigationSplitView {
List {
NavigationLink(destination: DetailView(item: "Item 1")) {
Text("Item 1")
}
NavigationLink(destination: DetailView(item: "Item 2")) {
Text("Item 2")
}
NavigationLink(destination: DetailView(item: "Item 3")) {
Text("Item 3")
}
}
.navigationTitle("Items")
} detail: {
VStack {
DetailView(item: "Select an item")
Button(action: toggleColumnWidth) {
Text(columnWidth == 300 ? "Collapse" : "Expand")
}
.padding()
}
}
.navigationSplitViewColumnWidth(columnWidth)
}
private func toggleColumnWidth() {
withAnimation {
columnWidth = columnWidth == 300 ? 0 : 300
}
}
}
struct DetailView: View {
var item: String
var body: some View {
Text("Detail view for \(item)")
.navigationTitle(item)
.padding()
}
}
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
I'm a newbie in Mac development and Xcode.
Trying to revive an old cross-platform open source project of mine and to continue its development on Xcode.
A new project setup was created using CMake. Managed to compile the project with the required dependencies outside Xcode.
If I try to build the project in Xcode, the only error is:
Command CodeSign failed with a nonzero exit code
Details:
... zzzz.app code object is not signed at all in subcomponent ...
Found a similar question in this forum: https://forums.developer.apple.com/forums/thread/701261
Tried to follow the recommendations there, but without success.
The subcomponent in question is simply text files (xpm) which are used by the application during runtime, and are supposed to be copied in the app/Contents directory
Will appreciate any help
Further details on the setup:
(Signing and Capabilities):
Signing is automatic;
Team: "None";
Bundle identifier: empty
Signing certificate: "Sign to run Locally"
(Build phases):
Tried to check "Code Sign on Co..." - no difference
If I check "Copy only when installing" - it builds fine, yet it is not copying my resource files in my zzzz.app/Contents directory
Xcode Version 15.3 (15E204a)
The project is in GitHub
Hii apple!
What about zooming with 2 fingers without making a screenshot to zoom it!!
I will love to make a pattent about it!!!
Everywhere we ad on the iphone should we zoom in with 2 fingers!!!
love to hear from ya
According to Apple's policy guidelines, if my mobile app includes a feature for creating user accounts, I must also provide an option for users to delete their accounts. However, in my app, account creation grants access to other enterprise accounts. Is it acceptable to offer an option to inactivate the user account instead of deleting it, in order to comply with these guidelines?
https://developer.apple.com/support/offering-account-deletion-in-your-app/
Hello
iPhone Mirroring is very nice and thank you for it.
I think it should be tilted to the right or left, that is, a side view.
Best regards
Please bring back live wallpapers from previous iPhone models. I have an iPhone 8plus & I have the beautiful purple smoky live wallpaper. I was so obsessed with how pretty it looked when live but now it’s just the pic of the purple smokiness and no live movement. ):
I would also like to point out that I cannot change my home-screen wallpaper without having to change my lock screen as well! What a bummer really bc i would at least like to keep the purple post-live wallpaper as my Lock Screen and be able to change my Home Screen!
Hi, would appreciate based on my implementation how can I control the dimmed effect of sheet presentation on iOS 17 later.
Here is my sample implementation:
struct ContentView: View {
@State private var present = true
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
}
.padding()
.sheet(isPresented: $present, content: {
ContentView2()
.modifier(
SheetModifier(
dismissDisabled: true,
detents: [.medium, .large],
dragIndicator: .hidden
)
)
})
}
}
#Preview {
ContentView()
}
struct SheetModifier: ViewModifier {
var dismissDisabled: Bool
var detents: Set<PresentationDetent>
var backgroundInteraction: PresentationBackgroundInteraction
var dragIndicator: Visibility
var cornerRadius: CGFloat
init(
dismissDisabled: Bool = false,
detents: Set<PresentationDetent>,
backgroundInteraction: PresentationBackgroundInteraction = .automatic,
dragIndicator: Visibility = .automatic,
cornerRadius: CGFloat = 20
) {
self.dismissDisabled = dismissDisabled
self.detents = detents
self.backgroundInteraction = backgroundInteraction
self.dragIndicator = dragIndicator
self.cornerRadius = cornerRadius
}
func body(content: Content) -> some View {
content
.background(.clear)
.interactiveDismissDisabled(dismissDisabled)
.presentationDetents(detents)
.presentationBackgroundInteraction(backgroundInteraction)
.presentationDragIndicator(dragIndicator)
.presentationCornerRadius(cornerRadius)
}
}
I am trying to add text in Xcode and use a font variant (like one of the new ones added in ios 16 i think). How do I use the SF Pro expanded variant?
Hi there,
I updated my MacBook Pro M2 to Sequoia today, and the dock does not move from one screen to another anymore.
My work setup involves four screens, including my MacBook, which is now experiencing this dock issue.
Also, I would love to display the dock on all monitors if possible.
I have been developing an app that includes some pinned locations. These are displayed on a map, and currently have the standard pins and SF Symbol pins. A few of the locations have a special symbol on Apple Maps, but the same symbol is not avalable in SF Symbols. I was wondering if it is possible to use the pins, other than the standard red, from Apple Maps.
Hi all,
I am a UI/UX designer working on several commercial projects, and I have a few questions that I need you to answer:
Can I use the icons from your SF Symbols set in my application? This is a SAAS application and is used on various platforms such as macOS and Windows.
Is SF Symbols only allowed for use in applications running on Apple platforms? Meaning, if my application is used on a MacBook or iPhone, am I allowed to use your icon set?
If usage is not permitted on platforms other than Apple’s, how can I legally use them on those platforms? Does Apple sell licenses for using SF Symbols on other platforms? If so, what is the cost?
Looking forward to your response.
尊敬的苹果审核官
您好
1.我们按照审核要求,这次提交审核中我们重新建了一个Xcode 项目,重构了代码功能及结构,删除了没用到的第三方库,图片资源、功能模块。
2.好多之前没用到的第三方库,资源已经被删除掉了,我们不明白为什么还会有 4.3 的审核意见,希望苹果审查官给一些详细改进意见。
3.为了能上线苹果市场,我们已经花费大量的精力,时间在配合更正 一些产品功能,开发人员加班加点的弄了好几周时间,希望审查官能给一些明确的改进意见,非常感谢。
4.期待digibuy应用能早日的审核上线,不枉费大家的共同努力。