Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser.

Posts under HTML tag

200 Posts

Post

Replies

Boosts

Views

Activity

The result of Element.prototype.scrollBy is abnormal on Safari with iOS 17.0?
I found an anomaly in the scrolling position when using Element.prototype.scrollBy to scroll DOM elements. For example, when using scrollBy(0, 20) to scroll the element, the scrollTop read immediately after the scroll is completed is the expected 20. However, after adding some delay, it becomes 40. It seems like after scrolling a distance of ‘a’, the scrollTop read after the delay becomes ‘2a’. Below is the minimal case I tried to write. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="wrapper" style="overflow-y: scroll;height: 50px;"> <div id="scroller" style="height: 200px;"> </div> </div> <script> const wrapper = document.getElementById('wrapper'); wrapper.scrollBy(0, 20) console.log(wrapper.scrollTop) // will output 20 setTimeout(() => { console.log(wrapper.scrollTop) // will output 40 }, 500) </script> </body> </html>
0
0
755
Oct ’23
How can I resolve the issue where, in iOS 17, audio plays through the earpiece instead of the speaker when the camera loads?
In my PWA app, I utilize the getUserMedia() API for accessing the camera and also employ HTML audio tags to handle various types of media content. However, since updating to iOS 17, I've encountered an issue where, after granting permission for camera access, audio playback occurs through the earpiece instead of the media speaker. This problem is specific to iOS 17; earlier iOS versions work as expected. My app is developed using a stack that includes JavaScript, Angular, Ionic, HTML5, and CSS. Can you please provide guidance or a solution to address this issue and ensure that audio plays through the media speaker when using the camera on iOS 17?
0
0
868
Oct ’23
While camera loads then audio is playing(Wrong speaker) at earpiece in place of speaker in iOS17 only
In My PWA app I am using camera of getUserMedia() and html audio tags, So In my app I am using videos audios and camera based on requirements, so When I have updated iOS17 I have stared facing below issue. When I am loading camera after premission given. my audios are playing in ear speaker and not in media speaker only for ios17, older ios versions it is working fine. I am using javascript, angular, ionic with html5 css for developing my app. Please provide solution.
0
0
818
Oct ’23
Flashing Briefly Within an iframe
Hello! I am someone who creates websites. When I click a link within an iframe, the screen briefly turns white. (This link navigates within the iframe, and the parent frame does not navigate.) I haven't specified any background-color or styling within the iframe, including the body. However, it turns briefly white during the transition, probably due to a rendering issue. This issue doesn't occur on other devices (android). Can this be resolved with CSS, or is it a bug? PC MAC OS / 13.4 (22F66) Safari / 16.5 (18615.2.9.11.4) iPhone IOS / 16.1.1 Safari / unknown
0
0
756
Sep ’23
iPad Chrome has wrong height
iPad Pro(11-inch), iPadOS version: 16.6.1, Chrome version: 116.0.5845.177 I create a simple html and try to run on iPad. Although I set the height to 100vh, there is a vertical scrollbar on the right, and I could scroll down to a total empty page. It seems like the total height is more than 200vh. The web page works on Safari, but not work in iPad chrome. html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="styles.css"> </head> <body> <div style="background-color: green; height: 100%; width:100%;">This is a div</div> </body> </html> css: body { height: 100vh; min-height: -webkit-fill-available; } html { height: 100vh; height: -webkit-fill-available; }
0
0
1.1k
Sep ’23
How to hide the “Paste” menu on Safari browser when using navigator.clipboard.readText() in the button click handler?
I'm trying to read the clipboard data using the navigator.clipboard.readText() in the button click handler: <body> <h1>How to paste text</h1> <p><button type=button>Paste</button></p><textarea></textarea> <script> const pasteButton = document.querySelector("button"); pasteButton.addEventListener("click", (async () => { try { const e = await navigator.clipboard.readText(); document.querySelector("textarea").value += e; console.log("Text pasted.") } catch (e) { console.log("Failed to read clipboard. Using execCommand instead."); document.querySelector("textarea").focus(); const t = document.execCommand("paste"); console.log("document.execCommand result: ", t) } })); </script> </body> We can use the following link to check the demo page using the above code: https://web.dev/patterns/clipboard/paste-text/demo.html The demo page works fine when clicking the Paste button on the Chrome browser. But, it shows the Paste menu when clicking the Paste button on the Safari browser. Only when clicking the Paste menu on the Safari browser, the clipboard data is pasted into the text box. So, I'd like to know how to hide the "Paste" menu on Safari browser when using navigator.clipboard.readText() in the button click handler. Thanks.
0
0
1k
Sep ’23
[BUG Report - Smart Banner App] SAP shown only on several Pages (on Apps Installed), even though not configured
So we have an App (on Web & iOS environment), in which we still have not yet set up the Smart App Banner, but the Banner is shown on Safari on several pages. What we have on the project though is a list of Download pages to Play & Google Store in our About page which like the attachment below Here is the SAP being shown on only several pages: On Homepage it's not shown Upon clicking the profile picture and opening a Setting page, the SAP is shown On the Setting page, if we click Workspace, it still shows the SAP But when we are clicking the individual Workspace after that, the SAP is missing Because of this behavior, some of our page layouts are broken, thus we need to find a way to overcome this. To clarify this, we have 2 questions in mind, which is: On https://developer.apple.com/documentation/webkit/promoting_apps_with_smart_app_banners, it's shared that the SAP can only be set via a meta tag. As this bug is appearing on the Web environment, is there any other way to set the SAP rather than with meta, that might be the result of this bug? If we init the SAP via meta tag will it replace the existing SAP completely? If yes, then we can just use the configured meta to fix this. Nevertheless, the help and guidance on this are deeply appreciated. Thanks
0
0
562
Aug ’23
VoiceOver HTML table issue: VO announces content out of order when span element used in th
Wondering if anyone has come across this issue. When a element has text in a element in an HTML table, VoiceOver will announce the text in the second element first, even if it comes after the text that visually (and programmatically) comes before it. This also happens with nested span elements. It does not happen with cells. For example: Replicable on: Safari/iOS 16.6 with VoiceOver Edge 113.0.17 with VoiceOver Please see you can replicate here: https://codepen.io/ayesha-2303/full/eYQqbXX Is this expected functionality or is it a bug? How can I raise it if it is a bug?
1
0
963
Aug ’23
HTML behavior for input type "date" and "time" on Safari
Hello, I'm working for an IT company which edit Web apps and we use HTML tags with type="date" and type="time". Actually, we've got different problems on Safari (what I read was that these problems appeared with Safari 16). For and , the User Agent of Safari create tags inside tags (with pseudo-class "-webkit-datetime-edit-day-field" for instance) to display "ghost"/faked data when the value is empty or NULL (in fact, Safari display the current date, in the local format, in ). This behavior is really problematical for us because these inputs don't have to be filled every time (they are not required and don't have the attribute "required"), but they appear filled to our users... When you submit the form, the value is really empty (no value returned and that is what we want) but "something" is always displayed. We found a CSS trick to hide these things to our users but I think it's not normal, isn't it ? Can we block this Safari behavior ? Second problem : for , they are not editable anymore if their value is empty (we detect it thursday, April 6th 2023). However, if we put a specific value when we load the page, then we delete this value in the form, and then we change the value without loosing the focus of the input, it works. If we loose the focus, we can't click on the input to change its value or something else. Do you know the reason why ? For now, we are forced to change the type of these inputs to type="text" when users are on Safari in Javascript... Nevertheless, the official documentation (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date and https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time) talks about compatibility between and Safari. Any idea ? Thank you for your time.
3
3
7.4k
Aug ’23
Sharing the original URL in iOS Safari via the browser's share button
Currently in iOS Safari and Chrome, when you share a link via the share button, the link that gets copied is the canonical URL. The site that I am working on has a different website listed as the canonical URL (it's a requirement that can't be changed). Is it possible to force iOS Safari and Chrome so copy my website's original URL, instead of the canonical URL? My canonical urls are included in my site via the following tag: <link rel="canonical" href="www.example.com">
4
0
3.4k
Aug ’23
Media query doesn't work for iPad Air 5
Hi, I am trying to override some properties on iPad Air 5 with media query. I am using Safari, but the query should work with Chrome also. I have tried several combinations, but it seems that nothing works. For example I have tried this queries: @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 2) { body { font-size: 20px; } } @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { body { font-size: 20px; } } @media only screen and (-webkit-min-device-pixel-ratio: 2) { body { font-size: 20px; } } Does anyone know what is the problem? Best regards!
0
0
1.1k
Jul ’23
iOS 17 beta: problem with transparency on website
Hello, We're testing our app using iOS 17 beta to see if there's any problem, and we encountered an issue with an image rendered using HTML5 canvas having the alpha layer turning to white (See screenshot below) This happens not just our website but to other website as well. Both in UIWebView and Safari Browser. Is this going to be fixed before the actual release of iOS 17? or do we have to tweak our code somewhere in order to fix this? Thanks! Regards, Byron Bautista
4
1
2.4k
Jul ’23
iOS 16 Webview Set Cookie Or Response Error
Hello, I am developing a firewall against http attacks at Layer7 layer. And no system (linux/windows/android/bsd/ios version < 16) works flawlessly, except for ios 16 version. İos 16 device screen record (error): veed . io/view/ab86584b-c054-4b70-8c73-6ae9782fabad) Old ios version test (no error): I am using a golang http service in addition to nginx in the opened url. And when I try to access this golang code directly (ios16) I get 503 error from a device. And all this http service does is to set a cookie on the client after getting the useragent and ip information. Code: What new feature in iOS 16 prevents my service from running? and how can i fix this. Note: In iOS 16, the situation is the same in all browsers, not just safari, I tried it on chrome. However, there is no problem when I try it on 15 and lower versions, which is a lower version. Thanks for your help in advance.
0
2
966
Jul ’23
iOS 17 Map sits over TabView
I'm putting together a really simple demo/learning app to try out some of the new features of iOS 17, and I've found when adding a Map to an existing TabView, the map is extending itself over the tab, which is actually still visible and can be interacted with, but is basically hidden. There may be a modifier or something I'm missing to tell the map to stay in its frame, but I haven't found it. I have tried ones like safeAreaInsets, but that didn't seem to be right. Here's my super-simple view: TabView { Text("Not the map") .tabItem { Label("Not Map", systemImage: "person") } Map() .tabItem { Label("Map", systemImage: "map") } } And here's how it looks in the Simulator: I will file a feedback for this, but didn't want to too quickly assume it's a bug when it's just as likely I'm not doing something right (if not more so).
1
0
1.2k
Jul ’23
Display length of my Dictionary
I am using Swift and Leaf Template to build a website and I am trying to render some cards based on the length of the array. I am stuck here. Someone should please help me out. func handleArticleList(_ req: Request) -> EventLoopFuture<View> { var articles = [ArticleList]() // Populate the articles array with some data let article1 = ArticleList(articleName: "Article 1", articleImage: "image1.jpg", articleDescription: "Description of Article 1") let article2 = ArticleList(articleName: "Article 2", articleImage: "image2.jpg", articleDescription: "Description of Article 2") let article3 = ArticleList(articleName: "Article 3", articleImage: "image3.jpg", articleDescription: "Description of Article 3") articles.append(article1) articles.append(article2) articles.append(article3) for article in articles { print("Article Name: \(article)") // print("Article Image: \(article.articleImage)") // print("Article Description: \(article.articleDescription)") print("---") } print("value: \(articles.count)") // Convert the array of ArticleList objects into an array of dictionaries let articleDictionaries = articles.map { article in return [ "articleName": article.articleName, "articleImage": article.articleImage, "articleDescription": article.articleDescription ] } // print(articleDictionaries) let context: [String: Any] = [ "articles": articles, "value": articles.count ] // print("CONTEXT : \(context.count)") return req.view.render("index", context ) } } struct ArticleList: Encodable { var articleName: String var articleImage: String var articleDescription: String } My Leaf Template <main> //bunch of tailwind and HTML #for(planet in articles): <li> <h2>#(planet.articleName)</h2> </li> #endfor <p>#(articles.count)</p> </div> </div> </main>
3
0
719
Jun ’23
Tel HTML through Gmail on iOS
Hello, i am wondering why my HTML code is not working on iPhone, even though it is working on Windows PCs and Android phones. I listed a phone number in an email and made it clickable by adding this HTML code: 978-921-4334 Having sent the email, I accessed it on my phone through Gmail. The phone number is blue and looks like a button, can be clicked, but when clicked, it does nothing. I am not asked if I wish to call the number. This is not the case on my Windows PC and Android phone. The button responds as it should. Any idea on why this might be the case? Thanks in advance.
0
0
712
Jun ’23
The result of Element.prototype.scrollBy is abnormal on Safari with iOS 17.0?
I found an anomaly in the scrolling position when using Element.prototype.scrollBy to scroll DOM elements. For example, when using scrollBy(0, 20) to scroll the element, the scrollTop read immediately after the scroll is completed is the expected 20. However, after adding some delay, it becomes 40. It seems like after scrolling a distance of ‘a’, the scrollTop read after the delay becomes ‘2a’. Below is the minimal case I tried to write. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="wrapper" style="overflow-y: scroll;height: 50px;"> <div id="scroller" style="height: 200px;"> </div> </div> <script> const wrapper = document.getElementById('wrapper'); wrapper.scrollBy(0, 20) console.log(wrapper.scrollTop) // will output 20 setTimeout(() => { console.log(wrapper.scrollTop) // will output 40 }, 500) </script> </body> </html>
Replies
0
Boosts
0
Views
755
Activity
Oct ’23
How can I resolve the issue where, in iOS 17, audio plays through the earpiece instead of the speaker when the camera loads?
In my PWA app, I utilize the getUserMedia() API for accessing the camera and also employ HTML audio tags to handle various types of media content. However, since updating to iOS 17, I've encountered an issue where, after granting permission for camera access, audio playback occurs through the earpiece instead of the media speaker. This problem is specific to iOS 17; earlier iOS versions work as expected. My app is developed using a stack that includes JavaScript, Angular, Ionic, HTML5, and CSS. Can you please provide guidance or a solution to address this issue and ensure that audio plays through the media speaker when using the camera on iOS 17?
Replies
0
Boosts
0
Views
868
Activity
Oct ’23
While camera loads then audio is playing(Wrong speaker) at earpiece in place of speaker in iOS17 only
In My PWA app I am using camera of getUserMedia() and html audio tags, So In my app I am using videos audios and camera based on requirements, so When I have updated iOS17 I have stared facing below issue. When I am loading camera after premission given. my audios are playing in ear speaker and not in media speaker only for ios17, older ios versions it is working fine. I am using javascript, angular, ionic with html5 css for developing my app. Please provide solution.
Replies
0
Boosts
0
Views
818
Activity
Oct ’23
HTML5 game created in cocos creator suddenly crashes
Hello guys, We have built a game in Cocos Creator which works fine on all androids, windows, ipads and macs. But in iphone it crashes randomly. Does anyone know something about this like memory constraints etc.?
Replies
0
Boosts
0
Views
742
Activity
Oct ’23
What video formats does html-video support in safari?
For example, this video does not work in Safari either through the video tag or through simply opening the link. I can't figure out what exactly is wrong with this video, since most of the others work well. Any advice?
Replies
1
Boosts
0
Views
742
Activity
Sep ’23
Flashing Briefly Within an iframe
Hello! I am someone who creates websites. When I click a link within an iframe, the screen briefly turns white. (This link navigates within the iframe, and the parent frame does not navigate.) I haven't specified any background-color or styling within the iframe, including the body. However, it turns briefly white during the transition, probably due to a rendering issue. This issue doesn't occur on other devices (android). Can this be resolved with CSS, or is it a bug? PC MAC OS / 13.4 (22F66) Safari / 16.5 (18615.2.9.11.4) iPhone IOS / 16.1.1 Safari / unknown
Replies
0
Boosts
0
Views
756
Activity
Sep ’23
iPad Chrome has wrong height
iPad Pro(11-inch), iPadOS version: 16.6.1, Chrome version: 116.0.5845.177 I create a simple html and try to run on iPad. Although I set the height to 100vh, there is a vertical scrollbar on the right, and I could scroll down to a total empty page. It seems like the total height is more than 200vh. The web page works on Safari, but not work in iPad chrome. html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="styles.css"> </head> <body> <div style="background-color: green; height: 100%; width:100%;">This is a div</div> </body> </html> css: body { height: 100vh; min-height: -webkit-fill-available; } html { height: 100vh; height: -webkit-fill-available; }
Replies
0
Boosts
0
Views
1.1k
Activity
Sep ’23
How to hide the “Paste” menu on Safari browser when using navigator.clipboard.readText() in the button click handler?
I'm trying to read the clipboard data using the navigator.clipboard.readText() in the button click handler: <body> <h1>How to paste text</h1> <p><button type=button>Paste</button></p><textarea></textarea> <script> const pasteButton = document.querySelector("button"); pasteButton.addEventListener("click", (async () => { try { const e = await navigator.clipboard.readText(); document.querySelector("textarea").value += e; console.log("Text pasted.") } catch (e) { console.log("Failed to read clipboard. Using execCommand instead."); document.querySelector("textarea").focus(); const t = document.execCommand("paste"); console.log("document.execCommand result: ", t) } })); </script> </body> We can use the following link to check the demo page using the above code: https://web.dev/patterns/clipboard/paste-text/demo.html The demo page works fine when clicking the Paste button on the Chrome browser. But, it shows the Paste menu when clicking the Paste button on the Safari browser. Only when clicking the Paste menu on the Safari browser, the clipboard data is pasted into the text box. So, I'd like to know how to hide the "Paste" menu on Safari browser when using navigator.clipboard.readText() in the button click handler. Thanks.
Replies
0
Boosts
0
Views
1k
Activity
Sep ’23
When typing into HTML input type=date picker if you want a second or 2 what you previously typed will be overwritten
When typing into HTML input type=date picker if you want a second or 2 what you previously typed will be overwritten. For example if you highlight the year and you want to type in '2023'. You type in '20' (wait 2 seconds) and then type in '23' the previous '20' you typed will be overwritten.
Replies
0
Boosts
0
Views
589
Activity
Sep ’23
[BUG Report - Smart Banner App] SAP shown only on several Pages (on Apps Installed), even though not configured
So we have an App (on Web & iOS environment), in which we still have not yet set up the Smart App Banner, but the Banner is shown on Safari on several pages. What we have on the project though is a list of Download pages to Play & Google Store in our About page which like the attachment below Here is the SAP being shown on only several pages: On Homepage it's not shown Upon clicking the profile picture and opening a Setting page, the SAP is shown On the Setting page, if we click Workspace, it still shows the SAP But when we are clicking the individual Workspace after that, the SAP is missing Because of this behavior, some of our page layouts are broken, thus we need to find a way to overcome this. To clarify this, we have 2 questions in mind, which is: On https://developer.apple.com/documentation/webkit/promoting_apps_with_smart_app_banners, it's shared that the SAP can only be set via a meta tag. As this bug is appearing on the Web environment, is there any other way to set the SAP rather than with meta, that might be the result of this bug? If we init the SAP via meta tag will it replace the existing SAP completely? If yes, then we can just use the configured meta to fix this. Nevertheless, the help and guidance on this are deeply appreciated. Thanks
Replies
0
Boosts
0
Views
562
Activity
Aug ’23
VoiceOver HTML table issue: VO announces content out of order when span element used in th
Wondering if anyone has come across this issue. When a element has text in a element in an HTML table, VoiceOver will announce the text in the second element first, even if it comes after the text that visually (and programmatically) comes before it. This also happens with nested span elements. It does not happen with cells. For example: Replicable on: Safari/iOS 16.6 with VoiceOver Edge 113.0.17 with VoiceOver Please see you can replicate here: https://codepen.io/ayesha-2303/full/eYQqbXX Is this expected functionality or is it a bug? How can I raise it if it is a bug?
Replies
1
Boosts
0
Views
963
Activity
Aug ’23
HTML behavior for input type "date" and "time" on Safari
Hello, I'm working for an IT company which edit Web apps and we use HTML tags with type="date" and type="time". Actually, we've got different problems on Safari (what I read was that these problems appeared with Safari 16). For and , the User Agent of Safari create tags inside tags (with pseudo-class "-webkit-datetime-edit-day-field" for instance) to display "ghost"/faked data when the value is empty or NULL (in fact, Safari display the current date, in the local format, in ). This behavior is really problematical for us because these inputs don't have to be filled every time (they are not required and don't have the attribute "required"), but they appear filled to our users... When you submit the form, the value is really empty (no value returned and that is what we want) but "something" is always displayed. We found a CSS trick to hide these things to our users but I think it's not normal, isn't it ? Can we block this Safari behavior ? Second problem : for , they are not editable anymore if their value is empty (we detect it thursday, April 6th 2023). However, if we put a specific value when we load the page, then we delete this value in the form, and then we change the value without loosing the focus of the input, it works. If we loose the focus, we can't click on the input to change its value or something else. Do you know the reason why ? For now, we are forced to change the type of these inputs to type="text" when users are on Safari in Javascript... Nevertheless, the official documentation (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date and https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time) talks about compatibility between and Safari. Any idea ? Thank you for your time.
Replies
3
Boosts
3
Views
7.4k
Activity
Aug ’23
Sharing the original URL in iOS Safari via the browser's share button
Currently in iOS Safari and Chrome, when you share a link via the share button, the link that gets copied is the canonical URL. The site that I am working on has a different website listed as the canonical URL (it's a requirement that can't be changed). Is it possible to force iOS Safari and Chrome so copy my website's original URL, instead of the canonical URL? My canonical urls are included in my site via the following tag: <link rel="canonical" href="www.example.com">
Replies
4
Boosts
0
Views
3.4k
Activity
Aug ’23
IOS 14.4.1 WebView HTML content CSS Position:fixed Disappear when scroll
I have an IOS app with a Web View. The website have a fixed header and footer. Since the update to 14.4.1 the header is pushed down, and the footer becomes invisible when the page is scrolled.
Replies
3
Boosts
0
Views
2.0k
Activity
Jul ’23
Media query doesn't work for iPad Air 5
Hi, I am trying to override some properties on iPad Air 5 with media query. I am using Safari, but the query should work with Chrome also. I have tried several combinations, but it seems that nothing works. For example I have tried this queries: @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 2) { body { font-size: 20px; } } @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { body { font-size: 20px; } } @media only screen and (-webkit-min-device-pixel-ratio: 2) { body { font-size: 20px; } } Does anyone know what is the problem? Best regards!
Replies
0
Boosts
0
Views
1.1k
Activity
Jul ’23
iOS 17 beta: problem with transparency on website
Hello, We're testing our app using iOS 17 beta to see if there's any problem, and we encountered an issue with an image rendered using HTML5 canvas having the alpha layer turning to white (See screenshot below) This happens not just our website but to other website as well. Both in UIWebView and Safari Browser. Is this going to be fixed before the actual release of iOS 17? or do we have to tweak our code somewhere in order to fix this? Thanks! Regards, Byron Bautista
Replies
4
Boosts
1
Views
2.4k
Activity
Jul ’23
iOS 16 Webview Set Cookie Or Response Error
Hello, I am developing a firewall against http attacks at Layer7 layer. And no system (linux/windows/android/bsd/ios version < 16) works flawlessly, except for ios 16 version. İos 16 device screen record (error): veed . io/view/ab86584b-c054-4b70-8c73-6ae9782fabad) Old ios version test (no error): I am using a golang http service in addition to nginx in the opened url. And when I try to access this golang code directly (ios16) I get 503 error from a device. And all this http service does is to set a cookie on the client after getting the useragent and ip information. Code: What new feature in iOS 16 prevents my service from running? and how can i fix this. Note: In iOS 16, the situation is the same in all browsers, not just safari, I tried it on chrome. However, there is no problem when I try it on 15 and lower versions, which is a lower version. Thanks for your help in advance.
Replies
0
Boosts
2
Views
966
Activity
Jul ’23
iOS 17 Map sits over TabView
I'm putting together a really simple demo/learning app to try out some of the new features of iOS 17, and I've found when adding a Map to an existing TabView, the map is extending itself over the tab, which is actually still visible and can be interacted with, but is basically hidden. There may be a modifier or something I'm missing to tell the map to stay in its frame, but I haven't found it. I have tried ones like safeAreaInsets, but that didn't seem to be right. Here's my super-simple view: TabView { Text("Not the map") .tabItem { Label("Not Map", systemImage: "person") } Map() .tabItem { Label("Map", systemImage: "map") } } And here's how it looks in the Simulator: I will file a feedback for this, but didn't want to too quickly assume it's a bug when it's just as likely I'm not doing something right (if not more so).
Replies
1
Boosts
0
Views
1.2k
Activity
Jul ’23
Display length of my Dictionary
I am using Swift and Leaf Template to build a website and I am trying to render some cards based on the length of the array. I am stuck here. Someone should please help me out. func handleArticleList(_ req: Request) -> EventLoopFuture<View> { var articles = [ArticleList]() // Populate the articles array with some data let article1 = ArticleList(articleName: "Article 1", articleImage: "image1.jpg", articleDescription: "Description of Article 1") let article2 = ArticleList(articleName: "Article 2", articleImage: "image2.jpg", articleDescription: "Description of Article 2") let article3 = ArticleList(articleName: "Article 3", articleImage: "image3.jpg", articleDescription: "Description of Article 3") articles.append(article1) articles.append(article2) articles.append(article3) for article in articles { print("Article Name: \(article)") // print("Article Image: \(article.articleImage)") // print("Article Description: \(article.articleDescription)") print("---") } print("value: \(articles.count)") // Convert the array of ArticleList objects into an array of dictionaries let articleDictionaries = articles.map { article in return [ "articleName": article.articleName, "articleImage": article.articleImage, "articleDescription": article.articleDescription ] } // print(articleDictionaries) let context: [String: Any] = [ "articles": articles, "value": articles.count ] // print("CONTEXT : \(context.count)") return req.view.render("index", context ) } } struct ArticleList: Encodable { var articleName: String var articleImage: String var articleDescription: String } My Leaf Template <main> //bunch of tailwind and HTML #for(planet in articles): <li> <h2>#(planet.articleName)</h2> </li> #endfor <p>#(articles.count)</p> </div> </div> </main>
Replies
3
Boosts
0
Views
719
Activity
Jun ’23
Tel HTML through Gmail on iOS
Hello, i am wondering why my HTML code is not working on iPhone, even though it is working on Windows PCs and Android phones. I listed a phone number in an email and made it clickable by adding this HTML code: 978-921-4334 Having sent the email, I accessed it on my phone through Gmail. The phone number is blue and looks like a button, can be clicked, but when clicked, it does nothing. I am not asked if I wish to call the number. This is not the case on my Windows PC and Android phone. The button responds as it should. Any idea on why this might be the case? Thanks in advance.
Replies
0
Boosts
0
Views
712
Activity
Jun ’23