Search results for

“show when run”

115,097 results found

Post

Replies

Boosts

Views

Activity

Show a badge on a Rectangle
Hello guys, I want to show a badge on an object in SwiftUI, precisely I want the rectangle to show the badge on it every time I press it. I did some tests, but it isn't working. Can someone help me to build this? Here’s my code: import SwiftUI import PlaygroundSupport struct ContentView: View { var body: some View { Button(action: { badge(9) }, label: { Rectangle() .frame(width: 180, height: 200) .foregroundColor(.blue) }) } } PlaygroundPage.current.setLiveView(ContentView()) Thanks a lot.
2
0
2.2k
Feb ’22
App Runs in Simulator, Won't Run on Phone
I had the app running on the phone (5S with ios 9 on it).Today I added CloudKit code to simply save a few records to the db. That will not run in the Simulator. I did configure my iCloud creds and that made it stop saying I needed auth, but then it put up an error that access was denied based on the user.Running on the phone, it never even loads. Then the phone is basically hung. I try to term the app but it's not running. If I disconnect and reconnect I can start the cycle again.The devices screen says the phone is 'busy validating' the application.
1
0
265
Jul ’15
Why are some OS assets not showing at retina resolution?
In one of my projects, many built-in assets, such as the clear button in UITextField or UISearchBar objects, the UITableViewIndexSearch image, and the activity indicator in the status bar set by UIApplication.sharedApplication().networkActivityIndicatorVisible don't show at the correct resolution. I've noticed this on iPhone 6 and iPhone 6 Plus devices running iOS 8.4, as well as all of the simulators running iOS 8.4. I have other projects that don't show this issue.Screenshots are here: http://imgur.com/a/7TMlE
1
0
299
Jul ’15
SPM show-dependencies broken
I have a Package.swift // swift-tools-version: 5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: SharedUI, defaultLocalization: en_US, platforms: [.iOS(.v16)], products: [ .library( name: SharedUI, targets: [ AppTheme, ] ), ], dependencies: [ .package(url: https://github.com/apple/swift-markdown.git, 0.2.0..<0.3.0), ], targets: [ .target( name: AppTheme, dependencies: [ .product(name: Markdown, package: swift-markdown), ], path: AppTheme ), ] ) Run swift package show-dependencies shows error yuantong-macbookpro2:Downloads yuantong$ swift package show-dependencies Fetching https://github.com/apple/swift-markdown.git from cache Fetched https://github.com/apple/swift-markdown.git (0.67s) error: Couldn’t get the list of tags: fatal: cannot use bare repository '/Users/yuantong/Downloads/.build/repositories/swift-markdown-b692ce3c' (safe.bareRepository is 'explicit') which
8
0
2.5k
Feb ’24
Reply to High Sierra asking for ‘disk password’ and won’t accept any
My drive is already converted to apfs... I would like to know if I can still recover data from my drive. I wasn't able to do croaker's method before because I couldn't find the directory, but during the decryption process, I was able to locate it. After the installation proceeded, when I try to restart, my mbp now shows a circle with slash during startup. My drive is ok when I run first aid. I was asked to run diagnostics and showed that my drive has no issues..
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’17
Reply to TVJS debugging?
I was having the same problem. Safari 9.0.1 and Yosemite 10.10.5. Simulator was running fine and the Develop menu actually had Simulator Item available but it showed the greyed out No Inspectable Applications in the menu. I exited (cmd+q) safari, xcode, and the simulator. I started up Safari, got Xcode running and ran the simulator (in that order) and my app showed up in the Safari>Develop>Simulator menu.Thanks for the help peeps!
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Showing property in tablecell
I am following a course and am trying so test myself.I have a model and I give values to properties from a json-file.(If Im showing code wrong please tell me how I shoud do it)This works:func updateUIWithWeatherData() { cityLabel.text = weatherDataModel.city temperatureLabel.text = String(weatherDataModel.temperature) weatherIcon.image = UIImage(named: weatherDataModel.weatherIconName) }But here it doesn't. Test shows but not the city.func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = UITableViewCell(style: .default, reuseIdentifier: Cell) cell.textLabel?.text = weatherDataModel.city //cell.textLabel?.text = test return cell }
32
0
3.9k
Jun ’19
Show keyboard on button action
How to show the keyboard for textfield on ToolbarItem(placement: .keyboard)? I have a button and it's action I want is to show the keyboard. On top of which is ToolbarItem(placement: .keyboard) { HStack{ Button(...) TextField(, text: $bindingText) .textFieldStyle(RoundedBorderTextFieldStyle()) .keyboardType(.numberPad) .multilineTextAlignment(.trailing) } } I know keyboard shows with a textfield focused. How though to show the keyboard for ToolbarItem(placement: .keyboard) Textfield if can't show it without showing the keyboard?
2
0
823
Mar ’24
Archive not showing
Hi, I have recently upgraded to Xcode 12.5 and any build which I archive is saved in the respective folder but it is not showing in the organiser.
Replies
0
Boosts
0
Views
394
Activity
May ’21
Show a badge on a Rectangle
Hello guys, I want to show a badge on an object in SwiftUI, precisely I want the rectangle to show the badge on it every time I press it. I did some tests, but it isn't working. Can someone help me to build this? Here’s my code: import SwiftUI import PlaygroundSupport struct ContentView: View { var body: some View { Button(action: { badge(9) }, label: { Rectangle() .frame(width: 180, height: 200) .foregroundColor(.blue) }) } } PlaygroundPage.current.setLiveView(ContentView()) Thanks a lot.
Replies
2
Boosts
0
Views
2.2k
Activity
Feb ’22
App Runs in Simulator, Won't Run on Phone
I had the app running on the phone (5S with ios 9 on it).Today I added CloudKit code to simply save a few records to the db. That will not run in the Simulator. I did configure my iCloud creds and that made it stop saying I needed auth, but then it put up an error that access was denied based on the user.Running on the phone, it never even loads. Then the phone is basically hung. I try to term the app but it's not running. If I disconnect and reconnect I can start the cycle again.The devices screen says the phone is 'busy validating' the application.
Replies
1
Boosts
0
Views
265
Activity
Jul ’15
osacompile -u fails to show startup screen
When I build an applet on the command line using osacompile -x -u -o foo.app foo.scpt. the resulting applet doesn't show the startup screen, it only shows the Quit/Run default window. If I export the same script from the AppleScript Editor, it shows the correct startup screen. Do I need to set any additional options on the osacompile command?
Replies
1
Boosts
0
Views
571
Activity
Sep ’18
Why are some OS assets not showing at retina resolution?
In one of my projects, many built-in assets, such as the clear button in UITextField or UISearchBar objects, the UITableViewIndexSearch image, and the activity indicator in the status bar set by UIApplication.sharedApplication().networkActivityIndicatorVisible don't show at the correct resolution. I've noticed this on iPhone 6 and iPhone 6 Plus devices running iOS 8.4, as well as all of the simulators running iOS 8.4. I have other projects that don't show this issue.Screenshots are here: http://imgur.com/a/7TMlE
Replies
1
Boosts
0
Views
299
Activity
Jul ’15
show slide bar
I'm on a training course and need a slide bar to show entire area. Help? I'm using Firefox since safari keeps dropping my internet.
Replies
0
Boosts
0
Views
256
Activity
Oct ’20
SPM show-dependencies broken
I have a Package.swift // swift-tools-version: 5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: SharedUI, defaultLocalization: en_US, platforms: [.iOS(.v16)], products: [ .library( name: SharedUI, targets: [ AppTheme, ] ), ], dependencies: [ .package(url: https://github.com/apple/swift-markdown.git, 0.2.0..<0.3.0), ], targets: [ .target( name: AppTheme, dependencies: [ .product(name: Markdown, package: swift-markdown), ], path: AppTheme ), ] ) Run swift package show-dependencies shows error yuantong-macbookpro2:Downloads yuantong$ swift package show-dependencies Fetching https://github.com/apple/swift-markdown.git from cache Fetched https://github.com/apple/swift-markdown.git (0.67s) error: Couldn’t get the list of tags: fatal: cannot use bare repository '/Users/yuantong/Downloads/.build/repositories/swift-markdown-b692ce3c' (safe.bareRepository is 'explicit') which
Replies
8
Boosts
0
Views
2.5k
Activity
Feb ’24
iOS 9 shows iPhone instead of carrier name and not showing signals also
My iPhone 6 doesn't show carrier name and signal strength after i updated to iOS 9 even their is no sim it shows same but every thing works
Replies
3
Boosts
0
Views
2.0k
Activity
Jun ’15
Reply to iOS app crashes with EXC_CRASH (SIGKILL) when app goes back from background to foreground
Can you show the code where the error occurs.You may have some UI code not running in the main thread.
Replies
Boosts
Views
Activity
May ’19
Reply to High Sierra asking for ‘disk password’ and won’t accept any
My drive is already converted to apfs... I would like to know if I can still recover data from my drive. I wasn't able to do croaker's method before because I couldn't find the directory, but during the decryption process, I was able to locate it. After the installation proceeded, when I try to restart, my mbp now shows a circle with slash during startup. My drive is ok when I run first aid. I was asked to run diagnostics and showed that my drive has no issues..
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’17
Xcode always show 0 code coverage
i've a problem about unit test and code coverage the problem is when i run unit test on xcode 15.2 code coverage and execuable line is show normally but when i upgrade to xcode 16 code coverage and executable line is always show 0 how can i fix that
Replies
2
Boosts
0
Views
722
Activity
Jan ’25
Reply to TVJS debugging?
I was having the same problem. Safari 9.0.1 and Yosemite 10.10.5. Simulator was running fine and the Develop menu actually had Simulator Item available but it showed the greyed out No Inspectable Applications in the menu. I exited (cmd+q) safari, xcode, and the simulator. I started up Safari, got Xcode running and ran the simulator (in that order) and my app showed up in the Safari>Develop>Simulator menu.Thanks for the help peeps!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Showing property in tablecell
I am following a course and am trying so test myself.I have a model and I give values to properties from a json-file.(If Im showing code wrong please tell me how I shoud do it)This works:func updateUIWithWeatherData() { cityLabel.text = weatherDataModel.city temperatureLabel.text = String(weatherDataModel.temperature) weatherIcon.image = UIImage(named: weatherDataModel.weatherIconName) }But here it doesn't. Test shows but not the city.func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = UITableViewCell(style: .default, reuseIdentifier: Cell) cell.textLabel?.text = weatherDataModel.city //cell.textLabel?.text = test return cell }
Replies
32
Boosts
0
Views
3.9k
Activity
Jun ’19
Show keyboard on button action
How to show the keyboard for textfield on ToolbarItem(placement: .keyboard)? I have a button and it's action I want is to show the keyboard. On top of which is ToolbarItem(placement: .keyboard) { HStack{ Button(...) TextField(, text: $bindingText) .textFieldStyle(RoundedBorderTextFieldStyle()) .keyboardType(.numberPad) .multilineTextAlignment(.trailing) } } I know keyboard shows with a textfield focused. How though to show the keyboard for ToolbarItem(placement: .keyboard) Textfield if can't show it without showing the keyboard?
Replies
2
Boosts
0
Views
823
Activity
Mar ’24
How do I get my adbanner to show
I have created a simple Sprite kit game in swift and added an adbanner in my gameviewcontroller but it won't show when I load my game scene it's like it's behind or hidden.
Replies
2
Boosts
0
Views
398
Activity
Dec ’15