Interaction Design

RSS for tag

Create engaging ways for users to interact with your software.

Posts under Interaction Design tag

40 Posts

Post

Replies

Boosts

Views

Activity

View like the camera app
Hello all, I would like to understand how to create a SwiftUI View like the official camera app. When the device orientation changes, the view is not animating, and the buttons just rotate (4:3, 1x...). The camera app view is compose by flash and live buttons, camera preview, config buttons, and big button to shot the photo. In portrait, it is from top to bottom, in landscape, from left to right. Also, when the last pictures view is shown, it is adapted to the current orientation, like if the camera preview view was rendered in the same device orientation. Ideas? Thanks!
2
0
2.9k
Oct ’23
SwiftUI Multiplatform macOS Panning
I'm currently working on a project where on iOS the user needs to be able to tap and drag on a SwiftUI Canvas to pan (via a DragGesture()), but macOS should be able to use two fingers to pan, and I'm not sure how to do that. I've looked around some, and found a solution that doesn't work, which is to combine a DragGesture with a MagnificationGesture/MagnifyGesture, but it's far from functional. I've provided some code below for just the macOS part. import SwiftUI struct InfiniteCanvasV: View { @State private var scale: CGFloat = 1.0 @State private var translation: CGSize = .zero var body: some View { let gesture = SimultaneousGesture( MagnificationGesture() .onChanged { value in self.scale = value print("Scaling") }, DragGesture(minimumDistance: 0, coordinateSpace: .global) .onChanged { value in self.translation = value.translation print("Translating") } ) .onChanged { _ in print("Gesture changed") } return ZStack { Canvas { context, size in let scaledSize = CGSize(width: size.width * (scale) * 0.75, height: size.height * (scale) * 0.75) let xOffset = (size.width - scaledSize.width) / 2 let yOffset = (size.height - scaledSize.height) / 2 let scaledRect = CGRect(origin: CGPoint(x: xOffset, y: yOffset), size: scaledSize) context.stroke( Path(roundedRect: scaledRect, cornerSize: CGSize(width: 10, height: 10)), with: .color(.green), lineWidth: 4 ) } .gesture(gesture) .frame(width: 300, height: 200) .border(Color.blue) Text("\(scale)") .allowsHitTesting(false) } } }
1
2
1k
Jun ’23
Interfacing with Apple Emergency SOS
I have a safety system app that allows people to activate a help alert and notify selected contacts. I want to link the activation of the help alert in my app, so it triggers the existing Apple Emergency SOS process. Once SOS is activated, it auto calls emergency services in the jurisdiction the user is located in. Ref https://support.apple.com/en-us/HT208076 In my app the help alert is activated through a two step manual process, so a user has to consciously activate it. There is no interference with Apple processes, simply another pathway to activation. Question Is there documentation available for this proposed process? Signposting or any help is most welcome.
0
0
737
Jun ’23
(WWDC22) Stage Manager and External touch screens
Hi - on iPadOS16 beta1, we have been experimenting with connecting to external 1080p and 4k monitors using TypeC on latest M1 iPads. It appears to only display full-screen (non-mirrored) when there is a HID device such as mouse connected. This makes sense as you need to be able to control the screen independently. However for a touch screen external display (e.g. INNOCN) that supports multi-touch, it does not work. iPadOS (and macOS) do not have any multi-touch drivers. Is there plans for iPadOS (and indeed eventually macOS) to support external multi-touch screens?
2
1
3.1k
Jun ’23
Direct Touch Interaction Broken in iOS 14?
I have an app which requires the user to have direct interaction with a view when VoiceOver is enabled. In iOS 12 and 13 my code worked as expected. However, in iOS 14, whenever the user tries to interact with the view requiring direct interaction, the view responds with the audible message: "Direct touch area. Use the rotor to enable direct touch for this app." This is a bit of an awkward user experience for a visually impaired user. The user now has to enable something which was working just fine in previous versions. In addition, anytime the user navigates away from the app and then returns, they must re-enable direct touch again. In my code I was able to enable direct interactions with the following code: view.isUserInteractionEnabled = true view.isAccessibilityElement = true view.accessibilityTraits = UIAccessibilityTraits.allowsDirectInteraction However, this no loner seems to be enough. How do I tell my app: "Yes, please use direct interaction all the time and don't bother the user?"
11
0
5.1k
Mar ’23
Developing a custom swiftui profile images list
Hello Everyone, I'm developing an App and there is this specific behaviour that im struggling to implement. I want to display the profile images of the users participating in an event like below with the first 4 having their avatars appear and the surplus being counted and displayed in that counter circle. Not sure how to achieve this with swiftUI atm any guidance will be much appreciated
1
0
1.4k
Jan ’23
SQL Server
I want to use a free alternative of Microsoft SQL Sever on Mac as this isn't supported for macs. Please suggest me any substitute for this which is safe and easy to use.
2
1
915
Nov ’22
Interactive messages for apple business chat
I am looking for interactive messages for list picker and date picker. I followed apple doc and  used json format. Json format is not supported. its showing json in messages not looking like interactive message. Can anyone knows the correct template? Currently I am using following json format but its not working: { "templateType": "ListPicker", "version": "1.0", "data": { "replyMessage": { "title": "Thanks for selecting!", "subtitle": "Option selected" }, "content": { "title": "How can I help You?", "subtitle": "Tap to select option", "elements": [{ "title": "Apple", "subtitle": "apple" }, { "title": "Strawberry", "subtitle": "strawberry" }, { "title": "Other", "subtitle": "other" }] } } }
1
0
1.6k
Oct ’22
Is it possible to change the design of the AppSwitcher feature?
Hello Apple Developer Forum. I have an App Idea but am not exactly sure if it's technically possible to implement it. This is because I know that Apple is pretty strict on its designs, so here is the idea. App Description: This app is basically Siri suggestion on steroids. As iPhone users know, apple has an AppSwitcher feature where you can easily switch between already opened apps. Hence, what this app should do is use the app switcher feature's to switch between suggested apps, instead of switching between already opened apps like Apple do. For instance, if I have Instagram open and swipe to the right at the bottom edge of the screen, my next most suggest app will show up. Or if I have Instagram open and swipe upwards, it will show me the next 5 most suggest apps.
0
1
1.2k
Sep ’22
Combine Files and Photos into single Open Dialog
In iOS16, will there be an open dialog that combines Photos and Files? For any creative app, this seems like a common scenario…I want to open a photo from either the Camera Roll or Files to edit in my cool app. I would envision the left toolbar showing sources, such as: On My iPad, iCoud Drive, and Camera Roll. Currently, it’s a bit clunky and confusing for users to have two different choices just to open a photo for editing. Thanks! James
0
0
1.5k
Jun ’22
SF Font for UI/UX.
Hi! I am working on the UI/UX project for Apple apps(iPhone/watchOS etc.) using FIGMA. I don't have any Apple device from where I could use 'SF Font' family natively. I have tried the alternative fonts but none of them appealed to me and my client too. I also downloaded their resources but still it changes the file after I edit the text. Thanks in Advance.
1
0
1.8k
May ’22
Will the AppIcon automatically rounded in macOS 11?
Some context from the Human Interface Guidelines. It says that the AppIcon should be square in shape with no rounded edges. But when I build my app with the same image specs using Image Asset Catalog, it does not seems to be rounding the corners automagically. I know it does in iOS and iPadOS, but does it work macOS 11. And what about Icon shapes in older macOS Catalina? Will this change affect them. Square without rounded corners looks kinda ugly.
3
0
5.2k
Feb ’22
tvOS SwiftUI TabView ... .tabViewStyle(.page) swipe reversed
With this styling I get exactly what I want on screen. But, the swipe interaction is reversed with respect to what is anticipated when using an AppleTV remote. Does anyone know how to configure or compenstate for this? Edit: I should clarify, the way it's behaving is expected when swiping between on screen elements; a feature carousel, for example, like the one in AppleTV+. What I'm looking for is the interaction we use to swipe between fullscreen photos, in the Photos app for example.
0
0
995
Nov ’21
Where Can You Test Apple Iphone Apps If You Do Not Have The Device?
iOS Simulator can be used to test mobile applications. Xcode tool that comes along with iOS SDK includes Xcode IDE as well as the iOS Simulator. Xcode also includes all required tools and frameworks for building iOS apps. However, it is strongly recommended to test the app on a real device before publishing it. https://echyip.com/product/template-12002
0
0
645
Jul ’21
How to implement "Add to Siri" new UI on iPadOS 15 ?
The session says that "when someone taps Add to Siri, the shortcut is added instantly, using your suggested invocation phrase". (at 21 min in Video) Now we can see that new UI at iOS 15 beta 2. But on iPadOS 15 beta 2, it looks like unexpected behavior. It looks like INUIEditVoiceShortcutViewController shows in UISplitViewController, but we expect that in UIViewController itself. And when we tap "Back" button, INUIEditVoiceShortcutViewController shows on left side of window. It's Okay when the window has narrow width. This is what i expected. Is there any way to implement "Add to Siri" feature or is it an iPadOS bug ?
1
0
1.3k
Jul ’21
View like the camera app
Hello all, I would like to understand how to create a SwiftUI View like the official camera app. When the device orientation changes, the view is not animating, and the buttons just rotate (4:3, 1x...). The camera app view is compose by flash and live buttons, camera preview, config buttons, and big button to shot the photo. In portrait, it is from top to bottom, in landscape, from left to right. Also, when the last pictures view is shown, it is adapted to the current orientation, like if the camera preview view was rendered in the same device orientation. Ideas? Thanks!
Replies
2
Boosts
0
Views
2.9k
Activity
Oct ’23
SwiftUI Multiplatform macOS Panning
I'm currently working on a project where on iOS the user needs to be able to tap and drag on a SwiftUI Canvas to pan (via a DragGesture()), but macOS should be able to use two fingers to pan, and I'm not sure how to do that. I've looked around some, and found a solution that doesn't work, which is to combine a DragGesture with a MagnificationGesture/MagnifyGesture, but it's far from functional. I've provided some code below for just the macOS part. import SwiftUI struct InfiniteCanvasV: View { @State private var scale: CGFloat = 1.0 @State private var translation: CGSize = .zero var body: some View { let gesture = SimultaneousGesture( MagnificationGesture() .onChanged { value in self.scale = value print("Scaling") }, DragGesture(minimumDistance: 0, coordinateSpace: .global) .onChanged { value in self.translation = value.translation print("Translating") } ) .onChanged { _ in print("Gesture changed") } return ZStack { Canvas { context, size in let scaledSize = CGSize(width: size.width * (scale) * 0.75, height: size.height * (scale) * 0.75) let xOffset = (size.width - scaledSize.width) / 2 let yOffset = (size.height - scaledSize.height) / 2 let scaledRect = CGRect(origin: CGPoint(x: xOffset, y: yOffset), size: scaledSize) context.stroke( Path(roundedRect: scaledRect, cornerSize: CGSize(width: 10, height: 10)), with: .color(.green), lineWidth: 4 ) } .gesture(gesture) .frame(width: 300, height: 200) .border(Color.blue) Text("\(scale)") .allowsHitTesting(false) } } }
Replies
1
Boosts
2
Views
1k
Activity
Jun ’23
Interfacing with Apple Emergency SOS
I have a safety system app that allows people to activate a help alert and notify selected contacts. I want to link the activation of the help alert in my app, so it triggers the existing Apple Emergency SOS process. Once SOS is activated, it auto calls emergency services in the jurisdiction the user is located in. Ref https://support.apple.com/en-us/HT208076 In my app the help alert is activated through a two step manual process, so a user has to consciously activate it. There is no interference with Apple processes, simply another pathway to activation. Question Is there documentation available for this proposed process? Signposting or any help is most welcome.
Replies
0
Boosts
0
Views
737
Activity
Jun ’23
(WWDC22) Stage Manager and External touch screens
Hi - on iPadOS16 beta1, we have been experimenting with connecting to external 1080p and 4k monitors using TypeC on latest M1 iPads. It appears to only display full-screen (non-mirrored) when there is a HID device such as mouse connected. This makes sense as you need to be able to control the screen independently. However for a touch screen external display (e.g. INNOCN) that supports multi-touch, it does not work. iPadOS (and macOS) do not have any multi-touch drivers. Is there plans for iPadOS (and indeed eventually macOS) to support external multi-touch screens?
Replies
2
Boosts
1
Views
3.1k
Activity
Jun ’23
Direct Touch Interaction Broken in iOS 14?
I have an app which requires the user to have direct interaction with a view when VoiceOver is enabled. In iOS 12 and 13 my code worked as expected. However, in iOS 14, whenever the user tries to interact with the view requiring direct interaction, the view responds with the audible message: "Direct touch area. Use the rotor to enable direct touch for this app." This is a bit of an awkward user experience for a visually impaired user. The user now has to enable something which was working just fine in previous versions. In addition, anytime the user navigates away from the app and then returns, they must re-enable direct touch again. In my code I was able to enable direct interactions with the following code: view.isUserInteractionEnabled = true view.isAccessibilityElement = true view.accessibilityTraits = UIAccessibilityTraits.allowsDirectInteraction However, this no loner seems to be enough. How do I tell my app: "Yes, please use direct interaction all the time and don't bother the user?"
Replies
11
Boosts
0
Views
5.1k
Activity
Mar ’23
Developing a custom swiftui profile images list
Hello Everyone, I'm developing an App and there is this specific behaviour that im struggling to implement. I want to display the profile images of the users participating in an event like below with the first 4 having their avatars appear and the surplus being counted and displayed in that counter circle. Not sure how to achieve this with swiftUI atm any guidance will be much appreciated
Replies
1
Boosts
0
Views
1.4k
Activity
Jan ’23
SQL Server
I want to use a free alternative of Microsoft SQL Sever on Mac as this isn't supported for macs. Please suggest me any substitute for this which is safe and easy to use.
Replies
2
Boosts
1
Views
915
Activity
Nov ’22
Interactive messages for apple business chat
I am looking for interactive messages for list picker and date picker. I followed apple doc and  used json format. Json format is not supported. its showing json in messages not looking like interactive message. Can anyone knows the correct template? Currently I am using following json format but its not working: { "templateType": "ListPicker", "version": "1.0", "data": { "replyMessage": { "title": "Thanks for selecting!", "subtitle": "Option selected" }, "content": { "title": "How can I help You?", "subtitle": "Tap to select option", "elements": [{ "title": "Apple", "subtitle": "apple" }, { "title": "Strawberry", "subtitle": "strawberry" }, { "title": "Other", "subtitle": "other" }] } } }
Replies
1
Boosts
0
Views
1.6k
Activity
Oct ’22
Is it possible to change the design of the AppSwitcher feature?
Hello Apple Developer Forum. I have an App Idea but am not exactly sure if it's technically possible to implement it. This is because I know that Apple is pretty strict on its designs, so here is the idea. App Description: This app is basically Siri suggestion on steroids. As iPhone users know, apple has an AppSwitcher feature where you can easily switch between already opened apps. Hence, what this app should do is use the app switcher feature's to switch between suggested apps, instead of switching between already opened apps like Apple do. For instance, if I have Instagram open and swipe to the right at the bottom edge of the screen, my next most suggest app will show up. Or if I have Instagram open and swipe upwards, it will show me the next 5 most suggest apps.
Replies
0
Boosts
1
Views
1.2k
Activity
Sep ’22
Why does point No. 5 disappear at 6:40?
Dose anybody noticed this?
Replies
3
Boosts
0
Views
1.4k
Activity
Sep ’22
Combine Files and Photos into single Open Dialog
In iOS16, will there be an open dialog that combines Photos and Files? For any creative app, this seems like a common scenario…I want to open a photo from either the Camera Roll or Files to edit in my cool app. I would envision the left toolbar showing sources, such as: On My iPad, iCoud Drive, and Camera Roll. Currently, it’s a bit clunky and confusing for users to have two different choices just to open a photo for editing. Thanks! James
Replies
0
Boosts
0
Views
1.5k
Activity
Jun ’22
Whats is new on UI fo 2023
Hey devs! i would like to know if the new UI finally will be different o r is the same. Thank you, Shirley B.
Replies
1
Boosts
0
Views
1k
Activity
May ’22
SF Font for UI/UX.
Hi! I am working on the UI/UX project for Apple apps(iPhone/watchOS etc.) using FIGMA. I don't have any Apple device from where I could use 'SF Font' family natively. I have tried the alternative fonts but none of them appealed to me and my client too. I also downloaded their resources but still it changes the file after I edit the text. Thanks in Advance.
Replies
1
Boosts
0
Views
1.8k
Activity
May ’22
Will the AppIcon automatically rounded in macOS 11?
Some context from the Human Interface Guidelines. It says that the AppIcon should be square in shape with no rounded edges. But when I build my app with the same image specs using Image Asset Catalog, it does not seems to be rounding the corners automagically. I know it does in iOS and iPadOS, but does it work macOS 11. And what about Icon shapes in older macOS Catalina? Will this change affect them. Square without rounded corners looks kinda ugly.
Replies
3
Boosts
0
Views
5.2k
Activity
Feb ’22
How is a toast shaped photo frame made?
How is a toast shaped photo frame made? There's a demo?
Replies
0
Boosts
0
Views
822
Activity
Jan ’22
iOS 15 app ui keep breaking after few hour kept in background
I have a similar issue in an iOS react-native app after iOS 15 upgrade but with not a crash. If someone opens the app after ~1 hour from the last time he/she opened it, the app skips the SplashScreen and after that nothing renders correctly. The positioning and order of components are wrong.
Replies
2
Boosts
0
Views
764
Activity
Dec ’21
tvOS SwiftUI TabView ... .tabViewStyle(.page) swipe reversed
With this styling I get exactly what I want on screen. But, the swipe interaction is reversed with respect to what is anticipated when using an AppleTV remote. Does anyone know how to configure or compenstate for this? Edit: I should clarify, the way it's behaving is expected when swiping between on screen elements; a feature carousel, for example, like the one in AppleTV+. What I'm looking for is the interaction we use to swipe between fullscreen photos, in the Photos app for example.
Replies
0
Boosts
0
Views
995
Activity
Nov ’21
Where Can You Test Apple Iphone Apps If You Do Not Have The Device?
iOS Simulator can be used to test mobile applications. Xcode tool that comes along with iOS SDK includes Xcode IDE as well as the iOS Simulator. Xcode also includes all required tools and frameworks for building iOS apps. However, it is strongly recommended to test the app on a real device before publishing it. https://echyip.com/product/template-12002
Replies
0
Boosts
0
Views
645
Activity
Jul ’21
How to implement "Add to Siri" new UI on iPadOS 15 ?
The session says that "when someone taps Add to Siri, the shortcut is added instantly, using your suggested invocation phrase". (at 21 min in Video) Now we can see that new UI at iOS 15 beta 2. But on iPadOS 15 beta 2, it looks like unexpected behavior. It looks like INUIEditVoiceShortcutViewController shows in UISplitViewController, but we expect that in UIViewController itself. And when we tap "Back" button, INUIEditVoiceShortcutViewController shows on left side of window. It's Okay when the window has narrow width. This is what i expected. Is there any way to implement "Add to Siri" feature or is it an iPadOS bug ?
Replies
1
Boosts
0
Views
1.3k
Activity
Jul ’21
SwiftUI code of WWDC21 sample project Toasty available?
Hi there, I am wondering whether the SwiftUI code of the WWDC21 sample project Toasty is available for developers. Thank you!
Replies
0
Boosts
0
Views
620
Activity
Jul ’21