ios – How to draw circles on random position in view borders

Have a nice day fellas,
Help me please to catch how to draw circles on random position in view borders.

Red View options



var body: some View
.strokeBorder(, lineWidth: 2.0, antialiased: true)
.frame(width: 50, height: 50, alignment: .center)

I try to add circles on red view in random position using .position option, but you can see its not working:


The main problem is how to know width and height of red view on any device and set .position of circles. my bad english, sorry.

ios – SwiftUI comprehensive workaround for broken dark mode / accent colors – does one exist?

In SwiftUI (at least on the current stable version of iOS and Xcode, iOS 14.7, Xcode 12.5.1) I’ve found a few quite a few components where using preferredColorScheme and accentColor is just broken. For example contextMenu:

struct ContentView: View {
    var body: some View {
        HStack {
            Text("Hello, world!")
                .contextMenu(ContextMenu(menuItems: {
                    ("Menu Item 1")
                    ("Menu Item 2")
                    ("Menu Item 3")

If you run this code with dark mode enabled on the device, you will get a light app with dark mode context menus.

Other broken components are alert and colorPicker and that’s probably just to name a few.

For alerts, I’ve found that adding this code to the top level body var fixes the problem:

UIView.appearance(whenContainedInInstancesOf: (UIAlertController.self)).tintColor = UIColor(accent)
UIView.appearance(whenContainedInInstancesOf: (UIAlertController.self)).overrideUserInterfaceStyle = isDark ? .dark : .light

However, I am unable to find the correct UIAppearanceContainer to substitute for contextMenu and colorPicker. Substituting UIView, ie:

UIView.appearance(whenContainedInInstancesOf: (UIView.self)).tintColor = UIColor(accent)

DOES seem to fix everything, however, changing the accent color or dark mode within the app while it’s running seems to somehow break the SwiftUI updating system with regards to the colors, half of the elements end up not being updated when a change is made.

So, has someone managed to fix all the components within SwiftUI that are not affected correctly by preferredColorScheme and accentColor?

Can iOS shortcuts enter text at the current cursor position?

Can iOS shortcuts enter text at the current cursor position? – Ask Different

ios – ImageView constrained to bottom renders in top

I am trying to customize the splash screen of a flutter app on iOS.

The splash screen contains a centered image, which renders as expected, and a bottom image, which is rendered in the top of the screen, despite the fact that is configured to be shown at the bottom.

This is my view with its constraints:

Splash view with its views and constraints

The conflicting view is the SplashAppBlaze view. Despite having its bottom aligned with the bottom guide, the view is shown always at the top of the splash screen.

What should I do so the view is aligned to the bottom?

How to revoke cookies tracking permission on iOS Safari?

Today, when I log in my outlook account, a pop up dialog appeared asking me whether I allow “Microsoftonline.con” to use cookies and website data while browsing “”. It does not allow me to log in if I choose Don’t Allow, but after I press Allow, I cannot find a way to revoke the permission.

enter image description here

Anyone knows if there is such a setting to revoke the permission? I’m on iOS 14.

Thanks in advance.

ios – How do you determine if your iPhone is eligible for the latest Safari?

will only new iPhones be eligible for the latest Safari?

All the iPhones that support running iOS 15 will be able to run the desired version of Safari. iOS 15 is supported on the following iPhone:

  • iPhone 12
  • iPhone 12 mini
  • iPhone 12 Pro
  • iPhone 12 Pro Max
  • iPhone 11 Pro Max
  • iPhone 11 Pro
  • iPhone 11
  • iPhone XS Max
  • iPhone XS
  • iPhone XR
  • iPhone X
  • iPhone 8 Plus
  • iPhone 8
  • iPhone 7 Plus
  • iPhone 7
  • iPhone 6s Plus
  • iPhone 6s
  • iPhone SE (first generation)
  • iPhone SE (2020 – second generation)

Does it automatically update, or manually?

Supported iPhone does not automatically update to iOS 15. They have to be updated with the consent of the user.

And if currently released iPhones are eligible, then what determines how far back eligibility goes?

Apple decides which model of iPhone to support with the upcoming release of iOS. All the iPhone which ran iOS 13 and iOS 14 are capable of running iOS 15. This included iPhone as far back as iPhone 6s, released in September 2015.

Will iPhones released from several years ago also have access to the latest version of Safari?

All the iPhone released in the year 2015 and later are capable of running iOS 15.

Also, will Safari 15 release for Desktop and iOS simultaneously?

Only Apple can answer that, but from historical pattern, a new major of iOS and macOS are made around the same time frame.

sharedApplication’ is unavailable: not available on iOS (App Extension) (firebase messing / add targets notification service) xcode 12.5.1

require_relative ‘../node_modules/react-native/scripts/react_native_pods’
require_relative ‘../node_modules/@react-native-community/cli-platform-ios/native_modules’

platform :ios, ‘10.0’
permissions_path = ‘../node_modules/react-native-permissions/ios’
pod ‘Permission-AppTrackingTransparency’, :path => “#{permissions_path}/AppTrackingTransparency”

pod ‘Permission-Camera’, :path => “#{permissions_path}/Camera”

pod ‘Permission-FaceID’, :path => “#{permissions_path}/FaceID”

pod ‘Permission-LocationAccuracy’, :path => “#{permissions_path}/LocationAccuracy”

pod ‘Permission-LocationAlways’, :path => “#{permissions_path}/LocationAlways”

pod ‘Permission-LocationWhenInUse’, :path => “#{permissions_path}/LocationWhenInUse”

pod ‘Permission-PhotoLibrary’, :path => “#{permissions_path}/PhotoLibrary”

pod ‘Permission-Notifications’, :path => “#{permissions_path}/Notifications”

target ‘project’ do
config = use_native_modules!

:path => config(:reactNativePath),
# to enable hermes on iOS, change false to true and then install pods
:hermes_enabled => false
use_flipper!({ ‘Flipper’ => ‘0.87.0’, ‘Flipper-Folly’ => ‘2.5.3’ })

post_install do |installer|



installer.pods_project.targets.each do |target|

  if == "React-Core-AccessibilityResources"






target ‘ImageNotification’ do

pod ‘Firebase/Messaging’ #(8.4.0)


sound – How to create a iOS Ringtone from Mathematica

Does anyone have any idea how to create a ringtone for an iOS phone from Mathematica? It appears to be a very (unnecessarily) complicated process, that Apple has recently obfusticated even more by eliminating iTunes from Mac OS (it’s a horrible app, but at least it had the necessary audio codecs to do the trick).

react native – NativeBase Tabs Issue For force RTL for iOS apps

Need to give support for RTL in my app, added below code from checking the solution
NativeBase Tabs Issue For force RTL – Fix

Working fine for Android apps, any solution for iOS apps?

   import { I18nManager } from 'react-native'
   renderScrollableContent() {
    const scenes = this._composeScenes();
    const isRTLAndroid = I18nManager.isRTL;

    return (
          x: this.props.initialPage * this.state.containerWidth
        ref={scrollView => {
          this.scrollView = scrollView;
        onScroll={e => {
          const offsetX = e.nativeEvent.contentOffset.x;
          this._updateScrollValue(offsetX / this.state.containerWidth);
        If is isRtl do reverse else keep as it is

IPhone stuck in restart loop when updating to iOS 14.7

So I’ve tried to do a software update on my iPhone 11. I don’t exactly know my old version, but it was a bit ago since I last did a software update. The new version would have been 14.7. But as soon as I hit update, the phone did its usual procedures and then showed the black screen, all normal so far.

But as soon as the Apple logo showed up, there wasn’t even a loading bar, the thing restarted and now it’s been in a restart loop for more than half an hour.

I’ve tried researching and the closest I’ve seen to my problem was a MacRumors Forum post which describes a similar thing. I tried connecting it to my Computer and figuring out what the problem was using Apple Configurator 2, but since I couldn’t give consent on my phone.

Does anyone else have this problem?

DreamProxies - Cheapest USA Elite Private Proxies 100 Cheap USA Private Proxies Buy 200 Cheap USA Private Proxies 400 Best Private Proxies Cheap 1000 USA Private Proxies 2000 USA Private Proxies 5000 Cheap USA Private Proxies - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies New Proxy Lists Every Day Best Quality USA Private Proxies