Getting an Apple WatchKit App to pre-compose an SMS message with a line break (with Swift)? -
i'm having little trouble getting watchkit app pre-compose sms message line break (via apple watch message app).
my current code:
let mymessage = "hi!\nit's%20me!" let extent = wkextension.sharedextension() extent.opensystemurl(nsurl(string: "sms:&body=\(mymessage)")!)
this code crashes watch app if take out "\n" , replace "%20" keeping on same, function works fine.
does know how pre-compose sms message line break?
Comments
Post a Comment