I have a stream url which is getting from server. The streaming url is working in android and web, but whenever I try to play that ham getting a black screen wi
Today I worked for the first time with Apple Health Kit and successfully saved a workout in Health with the basic informations (activityType, start and end). My
Here's a view that navigates to a 2nd view: struct ContentView: View { var body: some View { NavigationView { NavigationLink {
I am new to SwiftUI. Imagine I am building an app for a shop. I have a view that is a list of the details of a product, and two buttons: Pin (add to favorites)
Can I access the health sensors of the apple watch? I want to get SpO2 measurements or heartbeat intervals when I start a measurement. Is this feasible? I can s
i wanted to built an picker ViewController, this vc requires an enum data that's inherit the CaseIterable protocol. Tried looking for it here Swift - Passing di
I'm using the newest version of Xcode, version 13.3.1 (13E500a). Xcode currently shows a yellow warning sign Update to recommended settings. When I click on thi
I am trying to write a function to return all children of a view at a given depth : /// Write the body of the function `views(atDepth:withRootView:)` /// which
Here is the crash log Apple Review sent me. I've never had this issue previously, and it seems like the issue is coming from old code I've been using for months
I imported BitcoinKit.swift which worked fine but get now the error: Could not find module 'RxSwift' for target 'x86_64-apple-ios-simulator'; found: arm64, arm6
I can see in the Apple documentation, when if let, the ? is used after as. But I tried this and the compile would not complain and the code behaved the same as
I want to add 5 file have extension .a to project. I click "+" button then choose 5 file .a add to project is success. But my project use xcodegen so I want to
I have a Tab bar Controller to manage all the views. The problem I'm having is when I call a function in searchViewController (doAThing()) from HomeViewControll
import SwiftUI struct ContentView: View { var body: some View { NavigationLink(destination: DetailView()) { Text(
I have a countdown Timer that shows seconds and milliseconds. The user can start/stop recording multiple times until the timer hits zero. The user can also dele
I have a custom SwiftLint action to flag up print() statements: custom_rules: disable_print: included: ".*\\.swift" name: "print usage" re
I am making a game in Swift using spritekit and I want 2 objects on screen, one that I move with the touchesMoved function (player) and the other to stay still
I tried to do it this way, but this is wrong. let meMarkerDot = MKUserLocation() meMarkerDot.coordinate = location.coordinate //Cannot assign to property: 'coo
I'm using the newest version of Xcode for my iOS app. I'm stuck with one small task since hours: I want to force my View Controller to always stay in light mode
I want to cache the response of API. When the internet is available it should fetch data from the server and should update locally cached data every time and wh