RoundedRectangle(cornerRadius: 8, style: .continuous) .
foregroundColor(Color.init(red: 255, green: 245, blue: 158))My rounded rectangle is all white. Why can't I initiate a custom color? Whereas Color.red works perfectly fine?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
The Apple documentation gives some user interface design tips on modal sheets including renaming Cancel to something like Dismiss where relevant. But there's no guide whether this is possible in SwiftUI.
There's a link that takes you to setTitle for Watchkit: https://developer.apple.com/documentation/watchkit/wkinterfacecontroller/1619570-settitle
But is there something equivalent for SwiftUI on a Watch app?
Hi, I am trying to use the natural language tagger for Japanese. I used this sample code:
var stringToRecognize = jpTextView.text
		let range = stringToRecognize!.startIndex ..< stringToRecognize!.endIndex
		let tagger = NLTagger(tagSchemes: [.lexicalClass])
		tagger.string = stringToRecognize
		tagger.enumerateTags(in: range, unit: .word, scheme: .lexicalClass) { (tag, range) -> Bool in
			print("Word [\(stringToRecognize![range])] : \(tag!.rawValue)")
			return true
		}
and applied it on some dummy data:
東京では11月から、コロナウイルスの病気で入院する人が多くなっています。このため、お腹の中に赤ちゃんがいる看護師も仕事を続けています。家に小さな子どもがいる看護師は、子どもにウイルスがうつらないか心配しながら仕事をしています。
The output was:
Word [東京] : OtherWord
Word [で] : OtherWord
Word [は] : OtherWord
Word [11] : OtherWord
Word [月] : OtherWord
Word [から] : OtherWord
Word [、] : Punctuation
Word [コロナ] : OtherWord
Word [ウイルス] : OtherWord
Word [の] : OtherWord
Word [病気] : OtherWord
Word [で] : OtherWord
Word [入院] : OtherWord
Word [する] : OtherWord
Word [人] : OtherWord
Word [が] : OtherWord
Word [多く] : OtherWord
Word [なっ] : OtherWord
Word [て] : OtherWord
Word [い] : OtherWord
Word [ます] : OtherWord
Word [。] : SentenceTerminator
Word [この] : OtherWord
Word [ため] : OtherWord
Word [、] : Punctuation
Word [お腹] : OtherWord
Word [の] : OtherWord
Word [中] : OtherWord
Word [に] : OtherWord
Word [赤ちゃん] : OtherWord
Word [が] : OtherWord
Word [いる] : OtherWord
Word [看護] : OtherWord
Word [師] : OtherWord
Word [も] : OtherWord
Word [仕事] : OtherWord
Word [を] : OtherWord
Word [続] : OtherWord
Word [け] : OtherWord
Word [て] : OtherWord
Word [い] : OtherWord
Word [ます] : OtherWord
Word [。] : SentenceTerminator
Word [家] : OtherWord
Word [に] : OtherWord
Word [小さな] : OtherWord
Word [子ども] : OtherWord
Word [が] : OtherWord
Word [いる] : OtherWord
Word [看護] : OtherWord
Word [師] : OtherWord
Word [は] : OtherWord
Word [、] : Punctuation
Word [子ども] : OtherWord
Word [に] : OtherWord
Word [ウイルス] : OtherWord
Word [が] : OtherWord
Word [うつら] : OtherWord
Word [ない] : OtherWord
Word [か] : OtherWord
Word [心配] : OtherWord
Word [し] : OtherWord
Word [ながら] : OtherWord
Word [仕事] : OtherWord
Word [を] : OtherWord
Word [し] : OtherWord
Word [て] : OtherWord
Word [い] : OtherWord
Word [ます] : OtherWord
Word [。] : SentenceTerminator
It looks like every word is just being picked up as OtherWord, and it can detect some punctuation. Is this correct, or will there be an improvement to the Japanese tagger soon so we can differentiate between nouns, verbs, conjunctions, particles, etc. ?
I want to create ruby text for some Japanese kanji and I can get CTRubyAnnotationCreateWithAttributes to work with an attributed string inside a UILabel but not UITextView. Is there a way around this?
Hi,
I recently adopted custom offer codes to offer a free month trial which then converts to an annual subscription. When the conversion occurs, I can see in the Trends section a unit of the annual subscription, but there is no sales revenue.
I reached out to technical support, which sent me around in circles to different reports, but still did not show any sales revenue. Then I went to a lab during WWDC, and the two engineers agreed that it was odd and they took down my case number (101707403851). I still have not heard back from them.
I recently had another custom offer code convert to a subscription and the same thing has happened again. I have another 15-20 converting soon, and I suspect the same will happen.
So am I making any sales from these custom offer codes, or should I stop offering them? Thanks.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
StoreKit
Analytics & Reporting