Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

swift

  1. Astuces iOS

    macOS Where is Swift Assist?

    Swift Assist has been announced at WWDC. It’s an AI tool that helps you with your Swift Code. https://www.apple.com/ca/newsroom/2024/06/apple-empowers-developers-and-fuels-innovation-with-new-tools-and-resources/ Swift assist is coming this year according to apple ...
  2. Aryan-x86

    MP 1,1-5,1 Best MacOS Version for performance on MP5.1 for Devs?

    Hi, I plan on using my 5.1-flashed MP4.1 with a single X5690, MVC flashed GTX 970, 32GB RAM, for developing iOS apps in xCode. Now I believe I have to use xCode 15, which requires MacOS Ventura. I am guessing that upgrading all the way to Ventura is impossible, and even if it isn't, I think...
  3. j-a-x

    Universal New version of my app Barograph rewritten in Swift

    Back in 2014 when Apple introduced a barometer chip on the iPhone 6, I wrote a quick data logger app called Barograph which would plot the atmospheric pressure from the barometer chip. Being a bit of a weather nerd, I built the app because thought it was cool to be able to collect meteorological...
  4. iHorseHead

    iOS Need help with UICalendarView

    Hello, not really sure if it's the right place to ask, but does anyone have any idea how I could circle a date if it already has an event in it? The UIKit doesn't have .circle() as SwiftUI does, but I was wondering if it's even possible with UIKit? I just couldn't find a way to do it. Any advice...
  5. Gamercraft567a

    iOS What is the difference between Xcode and playgrounds ?

    what are the differences Between Xcode and apple swift playgrounds?
  6. V

    iOS Call JS Function from Swift and get returned value from JS printed in Swift

    I need to call a JavaScript function from a local JavaScript file and then Call JS Function CalcualatePremiumWeb and get the returned value from JS printed in Swift. However, I'm encountering an error when trying to evaluate the JavaScript function and retrieve the result. Swift guard let...
  7. AbhijitShanbhag

    Which one to choose?

    Hi, I am new to iOS Development and Programming, and just would use the machine that I'm gonna buy for next 4 Years. (Since I got in college for computer science recently). So just wanted to know which one to choose? I am confused which RAM/CPU will be enough for the next 4 years as I proceed to...
  8. oleglysiak

    iOS How to launch the application on the iPhone boot up?

    I have a simple app that performs some task in the background. Is it possible to run the application on the iPhone boot up?
  9. Akrapovic

    iOS Swift - Converting a Dictionary to a KeyValuePair

    I'm trying to use the brand new Sift Chart framework, and the chartForegroundStyleScale function takes a KeyValuePairs as the argument. I tried supplying a Dictionary (of [String:Color], but I get the error Cannot convert value of type '[String : Color]' to expected argument type...
  10. A

    iOS Unbalanced calls to begin/end appearance transitions for UINavigationController

    I am building an iOS application(should also run on iPadOS and tvOS). We want to build without using a storyboard file and hence, UI related things would be done programmatically. While running the application on iOS 16 simulator, I get the following exception : IOSSceneDelegate[24955:574895]...
  11. W

    iOS App that can directly access/automatically set up conditions for Automation in Shortcuts??

    Is it possible for an externally created app that can directly access the automation feature (in shortcuts) and instantly set up an automation setting that will run the app? So the user doesn't have to set the automation up, they only have to give the app permission to access shortcuts and the...
  12. S

    iOS Displaying alerts in Swift shows compiler warnings

    I'm pretty new to Swift and I'm having some trouble implementing alerts into my SpriteKit game. The below code works on device & emulator, however every time I run the code I get two warnings. GameViewController.swift: import SpriteKit class GameViewController: UIViewController { override...
  13. attilakalel

    iOS failed to build ContentView.swift

    hopefully I can get some help on this, I've been trying to understand why, even when I create a new project I get the 'failed to build ContentView.swift' error. Literally just opened Xcode the other day for the first time in a long time to do some work and the error started appearing. I have...
  14. V

    iOS TIL - PersonNameComponentsFormatter

    Hi all, I've been around in these circles for over 10 years, but I'm starting to get back into the online forum circles. Just thought this would be a good share! // Example 1 let formatter = PersonNameComponentsFormatter() formatter.style = .long let components =...
  15. fluder

    FSNotes 5 – Pro notes manager for macOS

    Hi, guys! I am the author of this application, ask your questions, i will try to answer. Any feedback would be appreciated. FSNotes is modern notes manager for macOS and iOS. App respects open formats like GitHub Flavored Markdown, so you can easily write documents on iPhone and MacBook. It's...
  16. dkaiser

    VKit Player View only works in xcode not in exported app

    Hi, can't figure out why AVKit Player View only works inside xcode, and not in the exported app when i run the exported app it makes hole my viewcontroller blank like nothing is in it when i run it inside excode everything works.. anyone know what i am missing?
  17. K

    iPhone [FREE] Boundary! - Keep the ball in the box

    Boundary! for iOS was just released! This is my first ever iOS game, so let me know what you think! I'd appreciate any feedback or reviews! Incredibly simple. Incredibly difficult. A game about precision and timing. Can you make it past 100? Most people can’t. The more you play, the...
  18. P

    Universal Ploppypop [free][game]

    Download Ploppypop here Hello future Ploppypoppers! Over the last past months I developed my very first own iOS game fully in Spritekit. You would really help me with some feedback for the game, it’s for free so just download it and give it a try. Let’s first check the feature list...
  19. jsh8w

    iPhone Twidget for iOS - Twitter Widget

    Hello all; Twidget for iOS - Twitter Widget A few weeks ago, I was searching the App Store for a Twitter iOS 14 widget and to my amazement, there are hardly any apps that provide this functionality. So, I decided to build one myself. The app, 'Twidget', got released to the App Store today! 🎉...
  20. S

    Beginning programming: M1 Air or M1 Pro?

    I’ve been wanting to begin to learn programming for quite some time but didn’t have a Mac to do it with. With these new M1 Macs I’m thinking now may be a good time to get started. Would I be best suited to the Air or Pro? Thanks.