swift – iOS unwind segue breaking protocol/delegate. Why?

[ad_1] I have an iPhone app that presents information about a video playing on a kiosk-like device. The kiosk is running a python script that sends out video information via MQTT. The iPhone uses CocoaMQTT to listen for video information. When the information (title etc.) is received the app presents it modally in NowPlayingVC with…

The (Switch) Case of the Missing Binding — Erica Sadun

[ad_1] Here’s a cool little challenge brought up this morning by a friend. Consider the following code: switch foo { case .a: return “a” case .b(let str) where str.hasPrefix(“c”), .c: return “c” case .b: return “b” } It won’t compile. When you bind a symbol for one pattern, you must bind that symbol for every…

Sheets don’t inherit the environment – Ole Begemann

[ad_1] This behavior has been fixed. As of Xcode 12.0 (the iOS 14.0/macOS 11.0 SDKs), sheets do inherit their environment. Unlike other views, modal sheets in SwiftUI do not inherit the environment from their parent. The environment is SwiftUI’s way to pass data implicitly to child views. Among other things, the environment contains app- or…

Announcing Beginning iOS Programming with Swift for iOS 15 and Xcode 13

[ad_1] After months of hard work, the new edition of our Beginning iOS Programming with Swift course for iOS 15 and Xcode 13 is now officially launched. In addition to updating our course for iOS 15 and Xcode 13, this new update comes with two editions of the beginner book for UIKit and SwiftUI. Should…

Server-Side Swift with Vapor | raywenderlich.com

[ad_1] Tim Condon Server-side Swift team lead @ raywenderlich.com Vapor expert and mobile developer who has dabbled in everything from reverse… Instructor Ehab Yosry Amer A very enthusiastic Lead iOS developer with a very diverse experience, from building games to enterprise applications and POCs,… Tech Editor Adriana Kutenko Graphic Illustrator with a Bachelor’s Degree in…

Create dynamic height UITableViewCell – iOSTutorialJunction

[ad_1] Create dynamic height UITableViewCell in Swift In this tutorial, we will learn how to create dynamic height UITableViewCell in Swift. To achieve dynamic height we will create multi line UILabel in UITableView using swift language.                                      We will use the new UITableViewAutomaticDimension property. UITableViewAutomaticDimension property is a handy thing for iOS developers as it…

A different way to develop SwiftPM Packages inside Xcode projects — Erica Sadun

[ad_1] WWDC gave us many reasons to both migrate libraries to SwiftPM and to develop new ones to support our work. The integration between Xcode development and SwiftPM dependencies keeps growing stronger and more important. Apple’s Editing a Package Dependency as a Local Package assumes you’ll drag in your package to an Xcode project as a…

Testing UIKit accessibility in unit tests – Ole Begemann

[ad_1] I’m writing a custom progress view in UIKit: My circular progress view One of the design goals for the view is to be a drop-in replacement for UIProgressView. This means it should model UIProgressView’s API and behavior as closely as possible. One important aspect of this is accessibility: ideally, my progress view should be…

Internet connectivity in iOS – How to check – iOSTutorialJunction

[ad_1] Earlier we use Reachability classes to check for internet connectivity in iOS sdk. In swift, we commonly use cocoa-pod named Reachability to monitor for network changes. With iOS 12.0, apple provide a new framework named Network framework. In Network framework, we have one class named NWPathMonitor that monitor for network connectivity in iOS sdk….

DTCoreText 1.6.26 | Cocoanetics

[ad_1] Jun 30, 2021 This is a maintenance release mostly fixing build issues. Changes FIXED: Some weak support issues FIXED: Some warnings FIXED: Enabled bitcode FIXED: Missing weak for DTAccessibilityElement and view proxy FIXED: [Demo] About VC didn’t set correct content inset FIXED: Select correct fallbackFont with matching traits when multiple are available FIXED: Check…

How to create reusable views for modern collection views?

[ad_1] 2022/02/16 A quick intro to modern collection views using compositional layout, diffable data source and reusable view components. UIKit Reusable views inside a generic cell We all love to create custom views for building various user interface elements, right? We also love to use collection views to display data using…

android – How to draw the distance between 2 points on an image with React Native

[ad_1] Me and my team have been developing a software that among other things takes measures on pictures, as you can see in this animation. Now we’ve been asked to make a mobile app with a subset of the desktop features, including the measuring tool.We decided to use React Native, because we’re a small team…

Linking to text fragments in web pages – Ole Begemann

[ad_1] Text fragments are a way for web links to specify a word or phrase a browser should highlight on the destination page. Google Chrome added support for them in version 80 (released in February 2020). For example, opening the link oleb.net/2020/swift-docker-linux/#:~:text=running,container in Chrome should highlight the first heading of the article: Chromium highlighting the…

Using SwiftUI and WidgetKit to Make Your App Content Indispensable

[ad_1] By using a combination of SwiftUI and WidgetKit, you can increase the visibility of your app’s content and enhance the user experience by placing one or more “widgets” on the user’s iOS Home screen, macOS Notification Center, and/or iOS Today View. Widgets should display your app’s most relevant content, allowing users to get important…

inout parameter swift – Beginner guide – iOSTutorialJunction

[ad_1] By default parameters in swift function are constant. It means you can not change parameters values from inside of the function in swift. Sometimes we need to get parameters value to be modified from inside the function. So here, inout parameters comes to rescue as inout parameter in swift act like a reference type….

React Native, iOS 15, fetch: TypeError: Network request failed

[ad_1] I’m having this problem with fetch in React Native (on iOS 15.4): TypeError: Network request failed at fetch.umd.js:535:18 at JSTimers.js:214:18 at _callTimer (JSTimers.js:112:7) at Object.callTimers (JSTimers.js:357:7) at MessageQueue.__callFunction (MessageQueue.js:419:27) at MessageQueue.js:116:12 at MessageQueue.__guard (MessageQueue.js:370:9) at MessageQueue.callFunctionReturnFlushedQueue (MessageQueue.js:115:10) at debuggerWorker.js:69:58 …and I have seen many recommendations to modify the ios/[APP_NAME]/Info.plist file to allow HTTP requests….

Sanitizing GPX files for public sharing – Ole Begemann

[ad_1] GPX is a popular XML format for running or cycling tracks with geocoordinates. This is a how-to for cleaning up a GPX file by removing unwanted or privacy-sensitive information. Many apps that record workout routes and can export them as GPX files include more data than the plain GPS coordinates. For instance, a GPX…

8 Best Fintech Apps That You Must Try and Check in 2022

[ad_1] Investment advise and scheduled investing goals Through notifications, you can suggest an apt plan for investment to your users. Investment decisions should be at their disposal through a scheduling option. It can be weekly, monthly, quarterly as per individual spending is concerned. Thus, this will increase the goodwill of your finance app. Apart from…

Mastering SwiftUI Book is Updated for iOS 15 and Xcode 13

[ad_1] We’ve just released an update for our SwiftUI book – Mastering SwiftUI. All the content including screenshots and source code are updated for Xcode 13 and iOS 15. On top of that, we added new chapters to cover some new APIs introduced in iOS 15 (e.g. AsyncImage and Searchable). This SwiftUI book is written for…

Create a drop down using swift language in iOS – iOSTutorialJunction

[ad_1] iOS tutorial: Create a drop down using swift language in iOS In this tutorial, we will learn how to create a drop down using swift language in iOS app development. For creating a dropdown, we will use a cocoa-pod named “DropDown” by assistolab. Given below is the url for the pod documentation. You can…