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

swift

  1. 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...
  2. Gamercraft567a

    iOS What is the difference between Xcode and playgrounds ?

    what are the differences Between Xcode and apple swift playgrounds?
  3. 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...
  4. 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...
  5. 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?
  6. 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...
  7. 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]...
  8. 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...
  9. 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...
  10. 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...
  11. 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 =...
  12. 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...
  13. 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?
  14. 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...
  15. 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...
  16. 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! ...
  17. 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.
  18. Flaming Gerbil

    macOS Is Swift getting slower?

    I learned Swift a few years back and created a few simple iOS, MacOS apps, and also did some hybrid C++/Obj C/Swift coding using Djinni. Coding is more of a sideline / hobby for me, and I tend to be project-focused rather than wedded to a single language / platform. At the time I was coding in...
  19. J

    Swift Playgrounds beta?

    Does anyone know if there will be a swift playgrounds beta that can use the latest (beta) Swift (and SwiftUI)? The current version does not support the newly added features.
  20. super_kev

    macOS Swift & Mac OS X/macOS system compatibility?

    Hi folks, I haven't found an answer to this and I've searched around for awhile, but I'm looking into learning Swift, and I wanted to know if there are any Swift language/XCode version cutoffs where the language is not compatible with older versions of Mac OS X? For example, if I develop on a...