Search results for

show when run

112,670 results found

Post

Replies

Boosts

Views

Activity

DS4macOS Compiled Things Partially and Run But it Has 30+ Yellow Warnings & Doesn't Show the Setting
Hi Apple and Swift friends. I'm not really a fluent Swift programmer (or any language) just knowledgable, I just a vague logic of what's going on. This is a gamepad controller remapper similar to DS4Windows on the PC and DSX on Steam gaming. On macOS Sonoma, it successfully compiled and connected the amazing Sony Playstation DualSense but because it has 33 yellow warning, the Setting doesn't show. It says something about outdated something and needs to be replaced by a newer framework.network. It also says it can't use self: It should look like these: What could be the syntax changes that won't produce the 30+ yellow warnings? The file can be had here: [https://github.com/marcowindt/ds4macos) God bless.
0
0
1.1k
Feb ’24
MSStickerView shows black background
I'm seeing this problem in my own app, but it also shows up in the IceCream iMessage sample app. If you run on an iPhone 7 (simulator or actual device), when you start to drag a MSStickerView (that is sitting in the cell of a UICollectionView), it shows a black background behind the sticker. Once you place it in a converstation, the background goes away, but it shows up from the minute the pick up animation starts. The exact same code running on an iPhone 6 (device or simulator) does not show this problem. The iPhone simulator is 10.0, the device in 10.0.1, for both the iPhone 6 and 7 cases.Anyone else seeing this?
1
0
914
Sep ’16
Reply to Need help w/escaping closures for API call
Can you be more specific? What is the current issue with your code? Does it cause some build-time errors and cannot run? Or it runs but causes some runtime errors? Or else, it runs without errors but shows unexpected results? And you should better include all the relevant types when showing your code. What are APIResults and MappedResults? Please show the definitions of them. One more, it is not recommended to use an initializer exactly the same as existing type names, as in your Line 47. It should be lowercased mappedResults.
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to SpriteKit Animations: Moving multiple nodes to different positions in a loop
If you want to run some actions sequentially, you may need to create a sequence of actions as in let sequence = .... (Please use Code block (< >) shown below the editing box.) Or you need to run the next action when the current action is completed. You may need to use run(_:completion:) instead of run(_:). (It is very hard to show detailed code as you are not showing enough info.)
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’20
Bug in segues Show vs Show Detail
Hi I reported a bug with segues a while ago and still haven't had any feedback and about 3 betas has been released since then. The bug ID is 33170765 and basically the problem is if you add a segue and choose Show Detail and then change it to Show it doesn't work correctly. It only works correctly if show detail is the first choice made when adding the segues. Here is a copy of the full bug report:http://www.openradar.me/radar?id=6713870815068160Thanks
1
0
975
Aug ’17
Showing Multiple Instances of View and Showing Results from Them
I have the following lines of code to show multiple instances of View (MyTextView) import SwiftUI struct ContentView: View { @State var myTextViews = [MyTextView]() var body: some View { VStack { Button { } label: { Text(Show me your current text strings) }.padding(.vertical, 10.0) VStack { ForEach(0 ..< myTextViews.count, id: .self) { _ in MyTextView() } } Button { myTextViews.append(MyTextView()) } label: { Text(Add me!) }.padding(.vertical, 10.0) } } } struct MyTextView: View { @State var text = var body: some View { ZStack { TextField(Enter some text, text: $text) }.padding(.horizontal, 50.0) } } According to the screenshot, I have three instances, each of which contains TextField. After I tap the top button (Show me your current...), I want to show the result from each TextField. How can I do that? Thanks.
5
0
1.2k
Apr ’22
Reply to Swift InputStream.hasBytesAvailable() returns false when reading a file on the desktop in swift how do I fix this?
Thanks for the reply @eskimo! So if I use NSOpenPanel() in my finder sync file and the user selects the home folder, will that give my app access to all sub folders and files and they won't have to give that permission again? Would you say this is a better approach than trying to use a temporary exception entitlements? I don't plan on shipping the app on the Mac App Store. Also thanks for the notice about InputStream. This is what i'm trying to use now but it just produces a very buggy and unusable window and I can't get the window to show when running it in override func beginObservingDirectory(at url: URL) {} class FinderSync: FIFinderSync { override init() { super.init() // Check if there is a previously selected folder URL let defaults = UserDefaults.standard guard let selectedFolderURL = defaults.url(forKey: selectedFolderURL) else { // Show the NSOpenPanel to select a folder let openPanel = NSOpenPanel() openPanel.canChooseDirectories = true openPanel.canChooseFiles = false openPanel.a
Topic: Programming Languages SubTopic: Swift Tags:
May ’23
Error running on iPhone
I ran an iPhone app on my phone and it worked without any issues about a month ago. Then i deleted it on my phone. Now i am trying to run it again but it does not run showing that my device is not registered. And when i went to the developer portal to check, it shows this error below.An unspecified error occurred.You cannot run your app on a device.So how would i fix it? I am just a beginner so please help me.
0
0
122
Jun ’15
Reply to Auto Unlock with Apple Watch
One thing I realized is that when I go to my devices on my Apple ID it was showing my Apple Watch still running 2.1 rather than 3.0. I simply Removed My Apple Watch From My Account which forced it to remove it and then readd it a few minutes later, & then it was showing it was running watchOS 3.0 & then the option to use Auto-Unlock showed up in Security & Privacy after a few minutes.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’16
Reply to TVTopShelfProvider not initialising
I've done all these things and my projects top shelf extension settings match the UIKitCatalog project's extension's settings as far as I can tell but I can only get the top shelf extension to show when I run from the extension's scheme. If I try to run from the tvOS app target's scheme, no top shelf extension shows up. This doesn't seem to be the case for the UIKitCatalog project. If I run from the UIKitCatalog target scheme, the top shelf extension shows up fine.Am I doing something wrong?
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15