Post not yet marked as solved
I don't know why but when I go into MusicKit part on developer part on my app on Apple's website there is no spot to configure it. I saw online a lot of articles saying that you have to configure it to use MusicKit with an app. Is this a bug or something or do I need to do something to enable it? I just don't understand I added it into my app but I can't seem to get this to work for some reason I'm not sure why.
Post not yet marked as solved
So I have an app that is designed for local files a lot but if a user navigates to an area for photo taking it causes the app to crash. I don't really need camera access requirement for my app that's why I never bothered to add the request in it because I didn't feel like it was needed.
Post not yet marked as solved
Currently my project I have works fine with if I load something small but if I load something big using WebKit it is very slow. I would like to have it work regardless of the load that is thrown at it as it would be the best user experience. Currently with testing seems like it is handling the rendering over a period of time vs all at once. Anyway I could have it load all at once vs like small little bits at a time. Like even increasing the disk and the memory temporarily while it loads. I wouldn't really typically expect an issue like this as I feel like iOS and devices should be very good processors in them to really handle anything a lot.
Post not yet marked as solved
Anyone know how Apple manages to make the UI colour the same as the Image or another object colour?
Like overall I think this is a really cool fun effect I'd love to play with this effect some somehow
Heres an example with how the New Safari does it with the page colour but I see it with other Apple apps like the music Player app for example.
Post not yet marked as solved
Originally this was for a macOS app but I was wondering if it would be possible to make it work on iOS? I wanna make the app work for not only macOS but also work for iOS as for the future Apple plans to make iOS and macOS more together.
var body: some Scene {
WindowGroup {
ContentView(bm_observer: bm_observer, hs_observer: hs_observer).edgesIgnoringSafeArea(.top).frame(minWidth: 800, maxWidth: .infinity, minHeight: 120, maxHeight: .infinity).onAppear {
UIApplication.shared.windows.forEach({ $0.tabbingMode = .disallowed })
if let mainMenu = NSApp .mainMenu {
DispatchQueue.main.async {
if let edit = mainMenu.items.first(where: { $0.title == "Format"}) {
mainMenu.removeItem(edit);
}
}
}
}
}.windowStyle(HiddenTitleBarWindowStyle()).commands() {
CommandMenu("History") {
ForEach(hs_observer.history) { history in
Button(history.name) {
hs_observer.selected_history = history.url
let nc = NotificationCenter.default
nc.post(name: Notification.Name("selected_history"), object: nil)
}
} }
ContentView.swift
struct Webview : UIViewRepresentable {
@Binding var dynamicHeight: CGFloat
@Binding var offset: CGPoint
@Binding var selecting_tab: Bool
var webview: WKWebView = WKWebView()
var oldContentOffset = CGPoint.zero
var originalcenter = CGPoint.zero
class Coordinator: NSObject, WKNavigationDelegate {
var parent: Webview
init(_ parent: Webview) {
self.parent = parent
}
func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
decisionHandler(WKNavigationActionPolicy(rawValue: WKNavigationActionPolicy.allow.rawValue + 2)!)
}
}
DispatchQueue.main.async { //omg
let window = UIApplication.shared.windows.first!
window.makeFirstResponder(nil)
}
extension UITextView { // << workaround !!!
open override var focusRingType: NSFocusRingType {
get { .none }
set { }
}
}
This does not want to work at all with the new WK Web Kit but Will only work with the old UIWebKit I have tried a lot of new code but still doesn't wanna work at all.
do {
w.loadHTMLString(try NSString(contentsOfFile: Bundle.main.path(forResource: "index", ofType: "html")!, encoding: String.Encoding.utf8.rawValue) as String, baseURL: URL(fileURLWithPath: Bundle.main.bundlePath, isDirectory: true))
} catch {
// catch error
}
Post not yet marked as solved
It says UIRefreshControl is not supported when running Catalyst apps in the Mac idiom. Consider using a Refresh menu item bound to ⌘-R what would I need to do to fix this to make my apps work with Catalyst?
It’s happened for like 5th or 7th time in a row I know that I haven’t uploaded a app in a couple months now for the store just due to working on a new game for development but I’m not running a beta version of Xcode only the 1 downloaded directly from the Mac App Store. It is so frustrating and annoying at the time because I would really like to get my game out there and also see if Apple will accept it but it’s their system that seems to keep rejecting the app for whatever reason and I’ve spent months of development into it. At first I thought that maybe it was an issue with the project but after updating it all to the latest settings and everything it seems to still do it. I’ve tried it with the regular Xcode uploading in the archives and with the uploader that comes bundled in Xcode. I have submitted apps in the past and I’ve never had this much issues ever. Is like Xcode still really buggy or something? I wouldn’t really think Apple would’ve made that many changes from my last project from earlier in 2019 years when I successfully submitted back then.