Search results for

show when run

112,803 results found

Post

Replies

Boosts

Views

Activity

Showing text in a ForEach
I would like to show paragraphs of text in a ForEach. This was my latest attempt: struct ContentView: View { let bodyText = This is a sample body text that will wrap naturally within the bounds of the container. var body: some View { WordWrapView(words: identifyWords(words: bodyText)) .padding() } func identifyWords(words: String) -> [IdentifiedWord] { let wordsArray = words.split(separator: ).map { String($0) } var idCounter = 1 return wordsArray.reversed().map { word in let identifiedWord = IdentifiedWord(id: String(idCounter), word: word) idCounter += 1 return identifiedWord } } } struct IdentifiedWord: Identifiable { let id: String let word: String } struct WordWrapView: View { let words: [IdentifiedWord] var body: some View { GeometryReader { geometry in self.createWrappedWords(in: geometry.size) } } func createWrappedWords(in size: CGSize) -> some View { var width: CGFloat = 0 var height: CGFloat = 0 return ZStack(alignment: .topLeading) { ForEach(words) { word in self.wordView(for: word
Topic: UI Frameworks SubTopic: SwiftUI
1
0
547
Jun ’24
Running c++ in terminal
Hi. I'm pretty new to coding and i have used CodeBlocks for some time. Recently I started using Xcode and there is one feature I really miss. When I run my code in CodeBlocks, it automatically opens terminal window and runs code there. In Xcode i can only see my output bellow the code, and if there are many lines it has to write, the console becomes really choppy and laggy. Is there a way could make that when i run my c++ code, it automatically runs in a new terminal window? (if it's not possible maybe there is a way to make console in Xcode run smoother when running the code)
1
0
874
Dec ’20
Run Script
I can't able to copy the folder files to another folder through runscript.I am getting error as no such file or directory.I have used below script in run script.rm -rf “$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Data”cp -Rf “$PROJECT_DIR/Heart3Ds_NoAR/Data” “$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Data”
4
0
8.2k
Oct ’15
show SystemBroadcastPickerView programmatically
Hello,I've recently seen apps present the RPSystemBroadcastPickerView upon a press on their custom UI, not the standard circular button that comes with RPSystemBroadcastPickerView. How do they do this? It seems to me, the only way for these apps to achieve this is to traverse the subviews and send a button press message to every subview that is a UIButton (since buttonPressed: is private API).Would this even pass the App Store review?My app isn't using the Cocoa framework and I cannot show the standard button in my UI, so I'd appreciate any help here. Launching the broadcast from the control center works, but I'd rather not add a tutorial on how to enable broadcasting.Thanks,Wojciech
0
0
1k
Jun ’19
Signed app wont run
HiToday I signed an app, so people who use my app, wont get a pop-up about an unidentified developer.The app used to run without any problems, if you just press'ed run anyway, when the pop-up show. But now that I have signed the app, it wont run at all. The icon just keep bouncing and then after some time say that the application wont respond.I have developed the app in Qt and have used this to sign the applicatio:codesign --force --verify --verbose --sign My Developer ID ./MyApp.appfind MyApp.app -name *.dylib | xargs -I $ codesign --force --verify --verbose --sign My Developer ID $find MyApp.app -name Qt* -type f | xargs -I $ codesign --force --verify --verbose --sign My Developer ID $*I have changed the Developer Id and the AppNameThe App is a Mac app that should be able to download from the internet and not from App Store.Hope someone can help me.Thanks in advance.
9
0
3.5k
Mar ’17
Running FxPlug Examples
Hi there,I'm just starting developing with the FxPlug SDK. I've tried testing the built in examples and encountered some problems. For simplicity I'll discuss the FxBrightness example. I've modified the uuid's in info.plist, changing the 2 group uuid's to a new uuid and the plugin uuid to a separate uuid.I've then built it using:xcodebuild -project FxBrightnessApp.xcodeproj/ -alltargetsThen run the resulting app. The plugin service then shows up in pluginkit -m so i know it's registered with the system and can see from the console log that the service is being made available to the final cut pro process however it does not show up in the list of available filters.Have I missed something? I've been through the SDK overview, in particular this page, to quote:Complete FxPlug plug-in examples are included in the FxPlug SDK.Note: To avoid plug-in conflicts, you must edit the UUID entries in the Info.plist file. You can create unique UUIDs by issuing the uuidgen command in the Terminal ap
Topic: UI Frameworks SubTopic: AppKit Tags:
3
0
1.2k
Jan ’16
Why are breakpoints in Xcode not showing source code now?
I have recently started to experience the debugger not stopping at breakpoints and showing source files. Instead it shows the assembly instructions and it seems to have started happening for others on my team. I thought maybe it was a setting somewhere in our projects so I created a new project with unit tests and even it does not work normally. The only recent change has been to do debugging with iOS 14 while using Xcode 11.3 due to still having some projects using Swift 4. We've copied the Device Support from the latest version of Xcode to run the app on the device. I have also tried debugging with an iPhone 6s running iOS 12 and also with the Simulator while running unit tests. In every case on this Mac I am not able to get source files to be displayed when the debugger stops at a breakpoint. And I have also tried running test unit tests for this project with Xcode 11.5. It also does not work. What could be preventing it from working?
1
0
8.6k
Sep ’20
Topshelf TVTopShelfCarouselItem title not showing
I would like for the topshelf TVTopShelfCarouselItem title and context title to show up when the topshelf shows up. Currently they are showing only after the user swipes up and then taps on the remote which shows all the UI, including the play button and more info button. Not showing the title results in the topshelf only showing an image (of a movie for example), and the user has no way of seeing the title until they interact with the UI. In Apple's TV app, the title is showing, in custom font, as soon as the topshelf is visible, while the app tray is still present. This is clearly a better user experience. Is there a way to do this or is this feature available only to Apple apps?
0
0
644
Dec ’20