Post not yet marked as solved
Hello there,
Does Scribble on iPadOS 14 support languages other than English? I tried switching to the Korean keyboard and when I write, it tries to convert to the English characters. If not currently, does Apple plan on supporting other languages for Scribble in the future? I think that would be a great addition.
Thank you.
Post not yet marked as solved
Hi,
I am struggling to add new views only available on iOS 14 while maintaining compatibility with iOS 13.
What I'd like is using a LazyVStack on iOS 14 and a List on iOS 13.
The following code compiles correctly but I am getting a ETCBADACCESS error on runtime on iOS 13.
If I switch to VStack instead of LazyVStack (so a view available in iOS 13), the crash disappears.
So it looks like SwiftUI tries to run the code in the #available block even though it's running iOS 13.
Do you have any suggestions ?
Thanks
var body: some View {
Group {
if #available(iOS 14.0, *) {
ScrollView {
LazyVStack {
content
.padding(.horizontal, 15)
}
}
} else {
List {
content
}
}
}
}
Hi, I've been trying to play an audio asset (.m4a) using an AVAudioPlayer, but results in what I believe is an internal error.
I've been using the following code to load and play the asset. Please note that the code was run using an iPad Pro 11-inch simulator with iPadOS 14 in Xcode 12 beta.
guard let audioData = NSDataAsset(name: "Example")?.data else {
fatalError("Asset not found")
}
do {
let audioPlayer = try AVAudioPlayer(data: audioData, fileTypeHint: "m4a")
audioPlayer.play()
} catch {
fatalError(error.localizedDescription)
}
The catch block is not reached, but the audio does not play and the console logs the following:
2020-06-26 14:48:25.784066-0500 Name[45441:2235216] HALB_IOBufferManager_Client::GetIOBuffer: the stream index is out of range
2020-06-26 14:48:25.784551-0500 Name[45441:2235216] HALB_IOBufferManager_Client::GetIOBuffer: the stream index is out of range
2020-06-26 14:48:25.796707-0500 Name[45441:2235216] [aqme] 255: AQDefaultDevice (1): output stream 0: null buffer
2020-06-26 14:48:25.797137-0500 Name[45441:2235216] [aqme] 1778: EXCEPTION thrown (-50): error != 0
Can you please let me know if there's something wrong with the way I'm loading/playing the asset or if this looks like an internal bug in the betas?
Post not yet marked as solved
I dont use Sidecar frequently, but just noticed after my upgrade that my iPad Pro 11 is no longer visible as a target for my Macbook Pro (late 2016). Both are running the Beta 1 (Big Sur on Macbook, and iPadOS 14). Anybody else experiencing this?
Post not yet marked as solved
I Have this app that uses the new sidebar introduced in iOS14 for iPad os but I can't figure out why it doesn't remember the state when its hidden
here is the stack overflow question where I've posted a gif of the problem
StackOverflow Question (w/ Video) - https://stackoverflow.com/questions/62760985/swiftui-sidebar-doesnt-remember-state
This is the sidebar struct
import SwiftUI
struct Sidebar: View {
		
		@Environment(\.managedObjectContext) var moc
		@Binding var selection : Set<NavigationItem>
		
		var body: some View {
				List(selection: $selection) {
						NavigationLink(destination: AgendaView().environment(\.managedObjectContext, moc).navigationTitle("Agenda"), label: {
								Label("Agenda", systemImage: "book")
						})
						.tag(NavigationItem.agenda)
						
						NavigationLink(destination: Text("Subjects"), label: {
								Label("Materie", systemImage: "tray.full")
						})
						.tag(NavigationItem.subjects)
						
						NavigationLink(destination: Text("Calendario"), label: {
								Label("Calendario", systemImage: "calendar")
						})
						.tag(NavigationItem.calendar)
						
						NavigationLink(destination: SettingsView().environment(\.managedObjectContext, moc).navigationTitle("Impostazioni"), label: {
								Label("Impostazioni", systemImage: "gear")
						})
						.tag(NavigationItem.settings)
						
				}
				.listStyle(SidebarListStyle())
		}
}
for tagging the elements I use a custom struct called NavigationItem
enum NavigationItem {
		case agenda
		case calendar
		case ...
}
and here is where I placed the Sidebar in the content view, as you can see if the device is an iPad (detected using sizeClasses) I use the sidebar, otherwise if its an iPhone I use the TabBar
import SwiftUI
struct ContentView: View {
		@Environment(\.horizontalSizeClass) var horizontalSizeClass
		@Environment(\.managedObjectContext) var moc
		
		@State private var selection : Set<NavigationItem> = [.agenda]
		
		@ViewBuilder
		var body: some View {
				
				if horizontalSizeClass == .compact {
						TabBar(selection: $selection)
								.environment(\.managedObjectContext, moc)
				} else {
						NavigationView {
								Sidebar(selection: $selection)
										.environment(\.managedObjectContext, moc)
										.navigationTitle("Menu")
						}
				}
		}
}
Post not yet marked as solved
Hello,
When creating an app with side bar for iPadOS using SwiftUI, when in dark mode the color of the sidebar and the detail view is indistinguishable. When running in light mode the sidebar has a distinct color. Just build and run the Fruta sample app and you can notice the issue. I tried adding something like .background(Color.gray) to the list but it has no effect.
I compared with the Files app on iPad, and the side bar in that app is a grey color which clearly separates the side bar from the detail content.
Is this a known issue? Are there any customisation modifiers that can set the background color?
Thanks!
Best Regards,
Filip
Is there any way to add destructive actions (such as a delete button in red) or separators to the new Menu in iOS and iPadOS as shown in the Build/Design with iOS pickers, menus and actions talks?
There's no way that I know of with .contextMenu and I was wondering if there was a way or a workaround.
Post not yet marked as solved
When I updated to iOS 14 beta 4 to test it out cod mobile will straight up crash any help will be wonderful
Post not yet marked as solved
iPad Pro died random death for no reason
I am seeking anyone who might be able to help since all of the Apple stores have zero support now.
I took my completely fully 100% charged Apple Pro iPad on a flight this week and about an hour into the flight and in the middle of a movie it turned off completely. I wasn’t touching it and had not touched it since I began the movie. It just shut off and completely died without warning.
I tried plugging it in again, even though I knew it had a full charge and That did not work.
I got home and tried plugging it into my Mac and my computer it is not recognizing it at all (tested with my phone and it works so it’s not the plug).
I’ve kept it plugged in for days and will grab it to try the double button reset and nothing turns it on.
Pressing the home button and the power button for two minutes even does not work. Pressing the volume button and the power button for two minutes does not work.
Nothing does anything.
I feel like I’m in one of those movies where there was an electromagnetic pulse that killed my iPad for no reason.
It’s not very old, we use it maybe once or twice a month so I can’t imagine spending another 1k+ when there is no reason it should not be working.
Is there someone who opens these and finds out what’s wrong??
Helppppp!!
Post not yet marked as solved
Using iPad Pro 3rd gen. Unable to send out emails. I’m on iPad IOS 14 beta 6, this started with beta 4, I get a red circle with a line through it. I also have an iPad 9.7 using the same beta but that one sends out.
I'm currently creating the sidebar for my app and now I am facing the problem of how I can change the background Color of my navigation view without affecting the background of the other views.
I've tried it like this:
init(){
UITableView.appearance().backgroundColor = UIColor.secondarySystemBackground
}
That works but now all of my list backgrounds have this color, which a don't want.
And if I try it like this, it doesn't change at all:
ZStack{
Color.red
List{
VStack{
NavigationLink(destination: ColorMenu()){
Label("Colors", systemImage: "square.grid.2x2.fill").accentColor(Color("Colory"))
}
}
}
}
So my question is if there is a way to change the background Color without affecting all the other views?
Thanks in advance
Post not yet marked as solved
I'm implementing the iOS 14 (iPadOS 14) sidebar (UISplitViewController with TripleColumn) and having strange "sidebar toggle icon" behavior.
In iOS 13 I'm using the tab bar with tabs with "split views" and tab with only "table view" so I need the Triple Column instead of the Double Column to work.
In iOS 13, there is one tab with only a table view, so I set the supplementary view to nil, and hide the view by calling "hide" method implemented in UISplitViewController in iOS 14. (See below for code).
The "sidebar toggle icon" on the upper left is automatically displayed. After clicking the toggle icon, the sidebar hides correctly but an "back button" was created on my secondary view(a UITableViewController embedded in a UINavigationController).
Selecting the back button has no response at all. However, user can still swipe from the left edge of the screen to make sidebar reappear but the "back button" is confusing.
My expected behavior is, after the toggle icon selected in sidebar, display the "sidebar toggle icon" instead of the "back button" in the secondary view. And after pressing the "sidebar toggle icon" in secondary view, the sidebar reappears.
Like the Photos app in iPadOS 14, the toggle button is shown instead of the back button in the secondary view. And clicking the toggle icon will make the sidebar shown again. (but it's a double column split view though, not a triple column split view.)
SceneDelegate.swift:
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
		if let windowScene = scene as? UIWindowScene {
				let window = UIWindow(windowScene: windowScene)
				if #available(iOS 14.0, *) {
						let main = UIStoryboard(name: "Main", bundle: nil)
						
						let splitViewController = UISplitViewController(style: .tripleColumn)
						splitViewController.preferredDisplayMode = .twoBesideSecondary
						splitViewController.preferredSplitBehavior = .tile
						splitViewController.setViewController(SideBarViewController(), for: .primary)
						// fall back for compact screen
						splitViewController.setViewController(main.instantiateInitialViewController(), for: .compact)
						window.rootViewController = splitViewController
						self.window = window
						window.makeKeyAndVisible()
				}
		}
}
SideBarViewController.swift:
// if the first tab (dashboard) was selected
private func selectDashboardTab() {
		if #available(iOS 14.0, *) {
				
				let dashboardVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "DashboardTab") as? UINavigationController
				splitViewController?.preferredPrimaryColumnWidth = 250.0
				splitViewController?.preferredDisplayMode = .twoBesideSecondary
				splitViewController?.preferredSplitBehavior = .tile
				splitViewController?.setViewController(dashboardVC, for: .secondary)
				splitViewController?.setViewController(nil, for: .supplementary)
				splitViewController?.hide(.supplementary)
		}
}
Post not yet marked as solved
Hi there.
Im using the apple tv app in 4 different equipments, and Ive noticed that the movies and tv shows on ipad pro 10.5 and ipad mini 5 are too dark. Even in daylight scenes. Even with the ipad in maximum brightness.
That doent happen in my iphone SE, and using the apple tv through the browser in my Macbook Pro.
Is it possible to fix this?
I don’t know if anyone is experiencing a bit laggy when using the Magic Keyboard’s trackpad. I tried scrolling it on Safari, Twitter, and Facebook. Sometimes, a bit second, it stops and can’t scroll then it will work again. I notice that the bar bottom of the iPad (don’t know what it’s called) can’t click when the tracker or pointer is in that place. I can’t get out of the current app that you are using. I need to use 3-finger gesture/swipe just to go to home screen. Plus the pointer got bigger even the slider is set to the smallest.
Post not yet marked as solved
I have a 2nd Gen IPad Pro 12.9, when trying to install the iPadOS 14.2 software update it is able to download the update but always fails when I get to the installation. It says unable to install update, an error occurred installing iPadOS 14.2 and I have the option to retry or remind me later. Neither has worked and I’ve tried restarting my iPad and logging out and back into my icloud, I also have WiFi and a substantial amount of charge, anyone know how I can get past this please?
Post not yet marked as solved
Since I’ve updated both my iPhone XR and my 6th gen iPad to iOS 14.2 I cannot connect any to my Boss KATANA-AIR Guitar amp via bluetooth any longer. Used to work fine before that. Anyone has experienced the same problem? Without bluetooth link it is impossible to switch libraries and the amp is useless.
Post not yet marked as solved
Since installation of iso 14.1 and 14.2 I can watch my battery drain visibly by the minute.
I have to charge it three times a day and it even drain when it’s not in use.
so what’s causing the drain.
I have turned off all automatic updates on all apps
i have turned off Siri on all apps
i have turned off background processing on all apps
i checked with my isp as my data disappeared 100gb in the three days I had it installed.
they told me it was iTunes that was using all my data followed by safari. Shall I delete iTunes ? But if I do that what’s the point of having an Apple device? I
I was advised to switch off wifi support in the data settings as it does a 85mb check each time it checks to see if it should be using wifi or mobile data.
I have now switched my data off completely. So again i ask what’s the point of paying for an Apple device if you can’t use your data plan?
ok so now with no data activated I only have the battery drain to deal with
so with nothing running and all the obvious switched off what’s causing it. There is obviously a service running the is very expensive of the battery.
do you have an answer and if so is there a way for me to switch the service off.
Post not yet marked as solved
I have an application designed for iPad, when i try to run it on Mac with M1 chip using the Xcode target "My Mac (Designed for iPad)", i get the error "Provisioning profile 'xx' doesn't include the currently selected device 'MacBook Air' (identifier xx)".
The device is already registered and the profile regenerated
Post not yet marked as solved
UISwitch is not accessible, it's marked by the accessible inspector like it hasn't got the minimum 44x44 size. (It has 51x31)
How can i resize switch to make it accessible?
Note: A transform not are going fix it
Thanks for all.
Post not yet marked as solved
Hi,
We have a profile to set the VPN configuration of the device. It is a BYOD device with per app vpn setting:
https://developer.apple.com/documentation/devicemanagement/applayervpn
We add following keys to our profile:
"SafariDomains", "CalendarDomains", "ContactsDomains" and "MailDomains".
The "SafariDomains" works and shown in the VPN profile settings in the device(in "Included Apps" section), with the given domains. However, all other features(came with iOS 13 MailDomains and etc.) does not wok
The domains we use are internal domains, so the DNS of the system is set within "VPN" connection. When we access the sites via Safari VPN works fine and we can access them, when we try Mail apps or try adding account via Settings then it fails.
We tried both "packet-tunnel" and "app-proxy" as ProviderType in the AppLayerVPN.VPN settings but it still did not work.
When we set the VPN on the whole device then the mail app and accounts can be fetched, so we do not think that it is VPN server related.
What are we missing here?
Any help or advice is appreciated.
Thanks
Our example profile:
dict
keyIKEv2/key
dict
keyAuthenticationMethod/key
stringCertificate/string
keyChildSecurityAssociationParameters/key
dict
keyDiffieHellmanGroup/key
integer14/integer
keyEncryptionAlgorithm/key
string3DES/string
keyIntegrityAlgorithm/key
stringSHA1-96/string
keyLifeTimeInMinutes/key
integer1440/integer
/dict
keyDeadPeerDetectionRate/key
stringMedium/string
keyDisableMOBIKE/key
integer0/integer
keyDisableRedirect/key
integer0/integer
keyEnableCertificateRevocationCheck/key
integer0/integer
keyEnablePFS/key
integer1/integer
keyIKESecurityAssociationParameters/key
dict
keyDiffieHellmanGroup/key
integer14/integer
keyEncryptionAlgorithm/key
string3DES/string
keyIntegrityAlgorithm/key
stringSHA1-96/string
keyLifeTimeInMinutes/key
integer1440/integer
/dict
keyOnDemandEnabled/key
integer1/integer
keyLocalIdentifier/key
stringuser@example.com/string
keyPayloadCertificateUUID/key
string5c0c7855-a8d9-4c86-8a21efec8335105a/string
keyRemoteAddress/key
stringvpn.example.com/string
keyRemoteIdentifier/key
stringvpn.example.com/string
keyUseConfigurationAttributeInternalIPSubnet/key
integer0/integer
/dict
keyIPv4/key
dict
keyOverridePrimary/key
integer1/integer
/dict
keyVPNUUID/key
string4dfdca51-aea1-461b-9a76-d24e8a2f9c07/string
keyOnDemandMatchAppEnabled/key
true/
keySafariDomains/key
array
stringinternal.lan/string
/array
keyCalendarDomains/key
array
stringinternal.lan/string
stringoutlook.internal.lan/string
/array
keyContactsDomains/key
array
stringinternal.lan/string
stringoutlook.internal.lan/string
/array
keyMailDomains/key
array
stringinternal.lan/string
stringoutlook.internal.lan/string
/array
keyPayloadDescription/key
stringConfigures VPN settings/string
keyPayloadDisplayName/key
stringVPN/string
keyPayloadIdentifier/key
stringcom.apple.vpn.managed.applayer.ebec689e-6c37-4344-a590-09fe4a22f436/string
keyPayloadType/key
stringcom.apple.vpn.managed.applayer/string
keyPayloadUUID/key
stringebec689e-6c37-4344-a590-09fe4a22f436/string
keyPayloadVersion/key
integer1/integer
keyProxies/key
dict
keyHTTPEnable/key
integer0/integer
keyHTTPSEnable/key
integer0/integer
/dict
keyUserDefinedName/key
stringMDM VPN/string
keyVPNType/key
stringIKEv2/string
keyVPN/key
dict
keyProviderType/key
stringpacket-tunnel/string
/dict
/dict
Complete Profile - https://developer.apple.com/forums/content/attachment/220f2081-3de5-4274-bacd-96bb8470524a